FusionCharts - Gallery Example - Pie 2D Chart
Created using FusionCharts Suite XT - www.fusioncharts.com
by Moonmi Sonowal
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- Basic sample for Pie 2D chart -->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var ageGroupChart = new FusionCharts({
type: 'pie2d',
renderAt: 'chart-container',
width: '450',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": { "caption": "Split of revenue by product categories",
"subCaption": "Last year",
"numberPrefix": "$",
"showPercentValues": "1",
"showPercentInTooltip": "0",
"enableSmartLabels": "1",
"decimals": "2",
"skipOverlapLabels": "1",
"useDataPlotColorForLabels": "0",
//Theme
"theme": "fint"
},
"data": [{
"label": "Food",
"value": "2850400"
}, {
"label": "Apparel",
"value": "146330"
}, {
"label": "Baby",
"value": "100",
"displayValue":"Baby, 0.00045%"
}, {
"label": "Sports",
"value": "140"
}, {
"label": "Bedding",
"value": "17000"
}, {
"label": "Car Wash",
"value": "75000"
}, {
"label": "Pet Foods",
"value": "76000"
}, {
"label": "Packaged Water",
"value": "45000"
}]
}
}).render();
});