-
Notifications
You must be signed in to change notification settings - Fork 2
/
productgannt.html
25 lines (19 loc) · 1.48 KB
/
productgannt.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gannt</title>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart','gannt']});
var data = google.visualization.arrayToDataTable([["Task ID", "Task Name", "Start", "End", "Resource", "Duration", "Percent Complete", "Dependencies"], ["RES.1.1.1.1", " First subproduct", "2022-01-01", "2022-12-31", "Subproduct", null, null, null], ["RES.1.1.2", " Second Product", "2019-09-01", "2020-12-31", "Product", null, null, null], ["RES.1.1.3.1", " First subproduct", "2019-08-01", "2020-12-31", "Subproduct", null, null, null], ["RES.1.1.3.2", " Second subproduct", "2019-08-01", "2022-12-31", "Subproduct", null, null, null], ["RES.1.1.3.3", " Third subproduct", "2019-08-01", "2022-12-31", "Subproduct", null, null, null], ["RES.1.1.3.4", " Fourth subproduct", "2019-08-01", "2022-12-31", "Subproduct", null, null, null], ["RES.1.1.3.5", " Fifth subproduct", "2019-08-01", "2021-09-30", "Subproduct", null, null, null], ["RES.1.1.3.6", " Sixth subproduct", "2019-08-01", "2020-09-30", "Subproduct", null, null, null]],false);
var options = {'title':Gannt};
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
chart = new google.visualization.Gannt(document.getElementById(gannt))
chart.draw(data,options)
}
</script>
<body>
<div id="gannt"></div>
</body>
</html>