FusionCharts - Gallery Example - Multi-series 2D Dual Y Combination 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>
<!--
Multi-series 2D Dual Y Combination Chart.
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var revenueChart = new FusionCharts({
type: 'mscombi2d',
renderAt: 'chart-container',
width: '500',
height: '400',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Revenues and Profits",
"subCaption": "For last year",
"xAxisname": "Month",
"YAxisName": "Amount (In USD)",
yAxisMinValue: 45,
"anchorRadius": "3",
"theme": "fusion"
},
"categories": [{
"category": [{
"label": "Jan"
},
{
"label": "Feb"
},
{
"label": "Mar"
},
{
"label": "Apr"
},
{
"label": "May"
},
{
"label": "Jun"
},
{
"label": "Jul"
},
{
"label": "Aug"
}
]
}],
"dataset": [{
"seriesName": "Profit %",
"renderAs": "line",
"showValues": "0",
"data": [{
"value": "2500"
},
{
"value": "2500"
},
{
"value": "2500"
},
{
"value": "2500"
},
{
"value": "2500"
},
{
"value": "2500"
},
{
"value": "2500"
},
{
"value": "2500"
}
]
},
{
"seriesName": "Revenues",
"renderAs": "line",
"data": [{
"value": "1500"
},
{
"value": "1500"
},
{
"value": "1500"
},
{
"value": "1500"
}
]
},
{
"seriesName": "Profits",
"renderAs": "area",
"showValues": "0",
...