-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgantt.html
43 lines (38 loc) · 1.33 KB
/
gantt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html>
<head>
<script src="../node_modules/anychart/dist/js/anychart-base.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-gantt.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-ui.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-exports.min.js"></script>
<script src="assets/hierarchical-data.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/anychart-jquery.min.js"></script>
<link rel="stylesheet" href="../node_modules/anychart/dist/css/anychart-ui.min.css" />
<link rel="stylesheet" href="../node_modules/anychart/dist/fonts/css/anychart-font.min.css" />
<style>
html,
body {
margin: 0;
padding: 0;
}
#container {
width: 800px;
height: 537px;
}
</style>
</head>
<body>
<div id="container"></div>
<script>
var data = anychart.data.tree(getData(), 'as-tree');
var cnt = $('#container');
cnt.anychart('ganttProject', data);
var chart = cnt.anychart();
chart.splitterPosition(223);
chart.fitAll();
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.6.3/iframeResizer.contentWindow.min.js"></script>
</body>
</html>