FusionCharts - Gallery Example - Doughnut 2D Chart

Created using FusionCharts Suite XT - www.fusioncharts.com

by FusionCharts

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: '550',
    height: '350',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Split of revenue by product categories",
        "subCaption": "Last year",
        "numberPrefix": "$",
        "startingAngle": "20",
        "showPercentValues": "1",
        "showPercentInTooltip": "0",
        "enableSmartLabels": "0",
        "enableMultiSlicing": "0",
        "decimals": "1",
        "useDataPlotColorForLabels": "1",
        //Theme
        "theme": "fusion"
      },
      "data": [{
        "label": "Food",
        "value": "285040"
      }, {
        "label": "Apparels",
        "value": "146330"
      }, {
        "label": "Electronics",
        "value": "105070"
      }, {
        "label": "Household",
        "value": "49100",
        "isSliced": "1"
      }]
    }
  }).render();
});