Replace thousand and decimal seperator in pie chart

Created using FusionCharts Suite XT - www.fusioncharts.com

by Nabajeet 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>
<!-- Basic samples for Pie 2D Chart showing split of revenue by product categories for last year.
-->
<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: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Split of revenue by product categories",
                "subCaption": "Last year",
                "numberPrefix": "$",
                "showPercentInTooltip": "0",
                //Theme
                "theme": "fint",
                "formatNumberScale":"0",
                "decimalSeparator":",",
                "thousandSeparator":"."
            },
            "data": [
                {
                    "label": "Food",
                    "value": "285040.89"
                }, 
                {
                    "label": "Apparels",
                    "value": "146330"
                }, 
                {
                    "label": "Electronics",
                    "value": "105070.45"
                }, 
                {
                    "label": "Household",
                    "value": "49100"
                }
            ]
        }
    }).render();
    
});