FusionCharts - Gallery Example - Gantt chart in JavaSCript
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!-- Gantt chart plotting tasks required for constructing a new store (Just completed) in Denver. This is a comparison of how planned estimates fared against the actual and which tasks got delayed.
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var cnstrctnPlan = new FusionCharts({
type: 'gantt',
renderAt: 'chart-container',
width: '750',
height: '500',
dataFormat: 'json',
dataSource: {
"chart": {
"renderAt:": "chart-1",
"dateformat": "mm/dd/yyyy",
"caption": "Commesse Associate al Collaboratore",
"subCaption": "Assistenza al Planning",
"theme": "fusion"
},
"categories": [
{
"category": [{
"label": "GEN",
"start": "01/01/2019",
"end": "01/31/2019"
}, {
"label": "FEB",
"start": "02/01/2019",
"end": "02/28/2019"
}, {
"label": "MAR",
"start": "03/01/2019",
"end": "03/31/2019"
}, {
"label": "APR",
"start": "04/01/2019",
"end": "04/30/2019"
}, {
"label": "MAG",
"start": "05/01/2019",
"end": "05/31/2019"
}, {
"label": "GIU",
"start": "06/01/2019",
"end": "06/30/2019"
}, {
"label": "LUG",
"start": "07/01/2019",
"end": "07/31/2019"
}, {
"label": "AGO",
"start": "08/01/2019",
"end": "08/31/2019"
}, {
"label": "SET",
"start": "09/01/2019",
"end": "09/30/2019"
}, {
"label": "OTT",
"start": "10/01/2019",
"end": "10/31/2019"
}, {
"label": "NOV",
"start": "11/01/2019",
"end": "11/30/2019"
}, {
"label": "DIC",
"start": "12/01/2019",
"end": "12/31/2019"
}]
}],
"processes": {
"headerText": "Process header",
"process": [{
"label": "SIL",
"id": "1"
}, {
...