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
| {% gcharts gantt Gantt 90% 400px %} [ [ {label:'Task ID',id:'taskid',type:'string'}, {label:'Task Name',id:'taskname',type:'string'}, {label:'Resource',id:'resource',type:'string'}, {label:'Start Date',id:'startdate',type:'date'}, {label:'End Date',id:'enddate',type:'date'}, {label:'Duration',id:'duration',type:'number'}, {label:'Percent Complete',id:'percent',type:'number'}, {label:'Dependencies',id:'dependencies',type:'string'}, ], ['Research', 'Find sources', null, new Date(2015, 0, 1), new Date(2015, 0, 5), null, 100, null], ['Write', 'Write paper', 'write', null, new Date(2015, 0, 9), 3 *24*60*60*1000, 25, 'Research,Outline'], ['Cite', 'Create bibliography', 'write', null, new Date(2015, 0, 7), 1 *24*60*60*1000, 20, 'Research'], ['Complete', 'Hand in paper', 'complete', null, new Date(2015, 0, 10), 1 *24*60*60*1000, 0, 'Cite,Write'], ['Outline', 'Outline paper', 'write', null, new Date(2015, 0, 6), 1 *24*60*60*1000, 100, 'Research'] ] options { height: 275, gantt: { criticalPathEnabled: true, criticalPathStyle: { stroke: '#e64a19', strokeWidth: 5 } } } {% endgcharts %}
|