An adjustable Gantt chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.gantt.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="800" height="350">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
var data = [
[31, 28, 67, 'Richard'], [0, 28, 50, 'Rachel'], [12, 28, 45, 'Fred'],
[59, 14, 0, 'Barney'], [59, 21, 5, 'Gloria'], [46, 31, 92, 'Paul'],
[80, 21, 46, 'Harry'], [94, 17, 84, 'Shane'], [34, 14, 32, 'Kyle'],
[64, 14, 28, 'Cynthia'], [13, 61, 74, 'Mabel'], [84, 31, 16, 'Paul'],
[80, 22, 45, 'Kiffen'], [0, 115, 50, 'John']
];
new RGraph.Gantt({
id: 'cvs',
data: data,
options: {
labels: ['January', 'February', 'March', 'April'],
xmax: 122,
labelsPercent: true,
backgroundGridAutofitNumvlines: 4,
adjustable: true
}
}).draw();
</script>