FusionCharts - Linked Chart [Data String Method]
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="https://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="https://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="https://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var DrillDown_revenueChart = new FusionCharts({
type: 'pie2d',
renderAt: 'chart-container',
width: '400',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Quarterly revenue",
"subCaption": "Last year",
"xAxisName": "Quarter (Click to drill down)",
"yAxisName": "Revenue (In USD)",
"numberPrefix": "$",
"theme": "fint",
"captionFontSize": "13",
"subCaptionFontSize": "12"
},
"data": [{
"label": "Q1",
"value": "1250400",
"link": "newchart-json-q1"
}, {
"label": "Q2",
"value": "1463300",
"link": "newchart-json-q2"
}, {
"label": "Q3",
"value": "1050700",
"link": "newchart-json-q3"
}, {
"label": "Q4",
"value": "491000",
"link": "newchart-json-q4"
}],
"linkeddata": [{
"id": "q1",
"linkedchart": {
"chart": {
"caption": "Monthly Revenue",
"subcaption": "First Quarter",
"xAxisName": "Month",
"yAxisName": "Revenue (In USD)",
"numberPrefix": "$",
"theme": "fint",
"captionFontSize": "13",
"subCaptionFontSize": "12"
},
"data": [{
"label": "Jan",
"value": "420000"
}, {
"label": "Feb",
...