FusionCharts - Gallery Example - Doughnut 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>
<!-- Doughnut chart example with: 
# Center label in 2D chart 
# Disabled tool-tips are disabled, but extended center label info on hover

-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var revenueChart = new FusionCharts({
    type: 'doughnut2d',
    renderAt: 'chart-container',
    width: '230',
    height: '195',
    dataFormat: 'xml',
    dataSource: "<chart theme='asi' animation='0' caption='$w.caption!' bgAlpha='100' bgColor='#FFFFFF' enableSmartLabels='1' manageLabelOverflow='1' useEllipsesWhenOverflow='1' showBorder='1' showZeroPies='1' showPercentValues='0' showValues='1' decimals='0' centerlabel='$label: $value' labelFontSize='14' labelDistance='2' chartLeftMargin='0' chartRightMargin='0' chartTopMargin='10' chartBottomMargin='0'><set label='Major' value='206' /><set label='Critical' value='96' /></chart>"
  }).render();
});