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

-->
  <button id="print" class="mb-20">Print chart</button>
  <br>
<div id="chart-container">FusionCharts will render here</div>
<div id="chart-container1">FusionCharts will render here</div>

CSS

body {
    padding: 5px;
    margina: 0 auto;
}

#chart-container1 {
  position: absolute;
  top: 0;
  right: 0;  bottom: 0;
  left: 300px;
  margin-top: 40px;
  width: 300px;
  height: 300px;
  z-index: 0;
} 

#chart-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin-top: 40px;
  padding : 0px;
  width: 300px;
  height: 300px;
  border: 0px solid black;
  z-index: 1;
}

JavaScript

FusionCharts.ready(function () {
var myData = {
            "chart": {
                "caption": "Split of Revenue by Product Categories",
                "subCaption": "Last year",
                "numberPrefix": "$",
                "paletteColors": "#0075c2,#1aaf5d,#f2c500,#f45b00,#8e0000",
                "bgColor": "#ffffff",
                "bgAlpha": "0",
                "showBorder": "0",
                "use3DLighting": "0",
                "showShadow": "1",
                "enableSmartLabels": "0",
                "startingAngle": "310",
                "showLabels": "0",
                "showPercentValues": "1",
                "showLegend": "1",
                "legendShadow": "0",
                "legendBorderAlpha": "0",
                "defaultCenterLabel": "Total revenue: $64.08K",
                "centerLabel": "Revenue from $label: $value",
                "centerLabelBold": "1",
                "showTooltip": "0",
                "decimals": "0",
                "captionFontSize": "14",
                "subcaptionFontSize": "14",
                "subcaptionFontBold": "0"
            },
            "data": [
                {
                    "label": "Food",
                    "isSliced": "0",
                    "value": "28504"
                }, 
                {
                    "label": "Apparels",
                    "isSliced": "0",
                    "value": "14633"
                }, 
                {
                    "label": "Electronics",
                    "isSliced": "0",
                    "value": "10507"
                }, 
                {
                    "label": "Household",
                    "isSliced": "0",
                    "value": "4910"
                }
            ]
        };
    var revenueChart = new FusionCharts({
        type: 'pie2d',
        id: 'chart-1',
        renderAt: 'chart-container',
        width: '100%',
        height: '100%',
        dataFormat: 'json',
       ...