FusionCharts - Gallery Example - Multi-Series Line Chart
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.zune.js"></script>
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var salesChart = new FusionCharts({
type: 'zoomline',
renderAt: 'chart-container',
width: '600',
height: '400',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Worldwide Smartphone Sales to End Users from 2011 to 2015",
"subcaption": "By Top 3 Vendors",
"linethickness": "2",
"numberPrefix": "$",
"showvalues": "0",
"formatnumberscale": "1",
"labeldisplay": "ROTATE",
"slantlabels": "1",
"divLineAlpha": "40",
"anchoralpha": "100",
"animation": "1",
"legendborderalpha": "20",
"tooltipGrayOutColor": "#80bfff",
"theme": "zune",
"useCrossLine": "0",
"plotToolText": "Value is $datavalue"
},
"categories": [{
"category": [{
"label": "Q1'12"
}, {
"label": "Q2'12"
}, {
"label": "Q3'12"
}, {
"label": "Q4'12"
}, {
"label": "Q1'13"
}, {
"label": "Q2'13"
}, {
"label": "Q3'13"
}, {
"label": "Q4'13"
}, {
"label": "Q1'14"
}, {
"label": "Q2'14"
}, {
"label": "Q3'14"
}, {
"label": "Q4'14"
}, {
"label": "Q1'15"
}, {
"label": "Q2'15"
}, {
"label": "Q3'15"
}, {
"label": "Q4'15"
}, {
"label": "Q1'16"
}, {
"label": "Q2'16"
}, {
"label": "Q3'16"
}, {
"label": "Q4'16"
}]
}],
"dataset": [{
"seriesname": "Samsung",
"data": [{
"value": "716000",
"toolText":"This is my custom text"
}, {
"value": "771700"
...