FusionCharts - Simple Gantt Chart
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>
<!-- A simple Gantt chart -->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var socialMediaPlan = new FusionCharts({
type: 'gantt',
renderAt: 'chart-container',
width: '750',
height: '500',
dataFormat: 'json',
dataSource: {
"chart": {
"dateformat": "mm/dd/yyyy",
"caption": "Social Media Optimization",
"subcaption": "Typical Steps Involved",
"theme": "fusion",
"canvasBorderAlpha": "40"
},
"annotations": {
"autoScale": "1",
showBelow:0,
"groups": [{
"id": "user-images",
scaleImages:1,
"items": [{
"id": "butterFinger-icon",
"type": "image",
"url": "https://static.fusioncharts.com/sampledata/userimages/1.png",
"x": "$dataset.0.set.0.STARTX",
"y": "$dataset.0.set.0.STARTY - 12",
"xScale": "80",
"yScale": "80",
},
{
"id": "tom-user-icon",
"type": "image",
"url": "https://static.fusioncharts.com/sampledata/userimages/2.png",
"x": "$dataset.0.set.1.ENDX - 35",
"y": "$dataset.0.set.1.STARTY - 12",
"xScale": "80",
"yScale": "80",
}
]
}]
},
"categories": [{
"category": [{
"start": "08/01/2014",
"end": "08/31/2014",
"label": "Aug '14"
},
{
"start": "09/01/2014",
"end": "09/30/2014",
"label": "Sep '14"
},
{
"start": "10/01/2014",
"end": "10/31/2014",
"label": "Oct '14"
},
{
"start": "11/01/2014",
"end": "11/30/2014",
"label": "Nov '14"
},
{
"start": "12/01/2014",
"end": "12/31/2014",
"label": "Dec '14"
},
{
"start": "01/01/2015",
...