FusionCharts - Gallery Example - Multi-Series Column 2D 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>
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var salesChart = new FusionCharts({
type: 'msline',
renderAt: 'chart-container',
width: '500',
height: '350',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Website Visitors",
"subCaption": "Last week Vs This week",
"decimals": "2",
"xAxisName": "Day",
"yAxisName": "No. of Visitors",
"theme": "fusion",
"showValues": "0",
//Setting automatic calculation of div lines to off
"adjustDiv": "0",
//Manually defining y-axis lower and upper limit
"yAxisMaxvalue": "3",
"yAxisMinValue": "0",
//Setting number of divisional lines to 9
"numDivLines": "5"
},
"categories": [{
"category": [{
"label": "Mon"
}, {
"label": "Tue"
}, {
"label": "Wed"
}, {
"label": "Thu"
}, {
"label": "Fri"
}, {
"label": "Sat"
}, {
"label": "Sun"
}]
}],
"dataset": [{
"seriesname": "Last Week",
"data": [{
"value": "1.3000"
}, {
"value": "1.4500"
}, {
"value": "1.3500"
}, {
"value": "1.5000"
}, {
"value": "1.5500"
}, {
"value": "1.7650"
}, {
"value": "1.9500"
}]
}, {
"seriesname": "This Week",
"data": [{
"value": "1.5400"
}, {
"value": "1.6800"
}, {
"value": "1.8800"
}, {
"value": "2.2400"
}, {
"value": "2.3800"
}, {
"value": "2.5800"
}, {
"value": "2.0800"
}]
}]
}
})
.render();
});