FusionCharts - Hiding data labels, disable multiple pie slicing, disable smart labels, showing legend in 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/themes/fusioncharts.theme.fint.js"></script>
<!-- Showcased in this pie chart: - - Hiding data labels and showing them in the legend instead. - Having a pie slice out, by default. Attributes : # showLabels - Set to 0, # showLegend - Set to 1, # enableSmartLabels - Set to 0, # enableMultiSlicing - Set to 0 -->
<div id="chart-container">FusionCharts will render here</div>

CSS

body div {
    float: left;
    padding: 0 10px;
}

JavaScript

FusionCharts.ready(function () {
    var revenueChart = new FusionCharts({
        type: 'pie2d',
        renderAt: 'chart-container',
        width: '450',
        height: '500',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Split of revenue by product categories",
                    "subCaption": "Last year",
                    "numberPrefix": "$",
                    "startingAngle": "20",
                    "showPercentValues": "1",
                    "showPercentInTooltip": "0",
                    "showLabels": "0",
                    "enableSmartLabels": "0",
                    "enableMultiSlicing": "0",
                    "showLegend": "1",
                    "decimals": "1",
                    "legendNumColumns": "1",
                    "theme": "fint",
                    "showLegend": "0",
                "chartBottomMargin":"100"
            },
                "annotations": {
                "drawImmediately": "1",
                    "showbelow": "1",
                    "groups": [{
                    "id": "Callout",
                        "items": [{
                        "id": "rect1",
                            "type": "rectangle",
                            "radius": "2",
                            "alpha": "90",
                            "fillColor": "#00B85C",
                            "x": "$chartStartX + 130",
                            "tox": "$chartStartX +150",
                            "y": "$chartEndY -120",
                            "toy": "$chartEndY-100"
                    }, {
                        "id": "rect2",
                            "type": "rectangle",
                            "radius": "2",
                            "alpha": "90",
                            "fillColor": "#5C8AE6",
                            "x": "$chartStartX + 130",
                            "tox": "$chartStartX +150",
                            "y":...