Sunburst with FusionCharts

by cristiscu

HTML

<script type="text/javascript" src="https://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<div id="chart-container"></div>

JavaScript

FusionCharts.ready(function(){
    var fusioncharts = new FusionCharts({
    type: 'multilevelpie',
    renderAt: 'chart-container',
    id: "myChart",
    width: '300',
    height: '185',
    dataFormat: 'json',
    
    dataSource: {
        "chart": {
            "caption": "Global Sales",
        },
        "category": [{
            //"color": "#ffffff",
            //"value": "150",
            "category": [{
                "label": "US",
                "color": "#ffcccc",
                "value": "22.5",
                "category": [{
                    "label": "2007",
                    "color": "#ffcccc",
                    "value": "9.45",
                }, {
                    "label": "2008",
                    "color": "#ffcccc",
                    "value": "6.3"
                }, {
                    "label": "2009",
                    "color": "#ffcccc",
                    "value": "6.75"
                }]
            }, {
                "label": "France",
                "color": "#f8bd19",
                "value": "55.5",
                "category": []
            }, {
                "label": "UK",
                "color": "#33ccff",
                "value": "42",
                "category": []
            }]
        }]
    }
}
);
    fusioncharts.render();
});