FusionCharts - Configuring position of thousand separator to reflect Indian Number Formatting

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/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!--
Changing position of thousand separator to format numbers in different style e.g., in Indian format. (e.g., INR 25,70,230)
    # thousandSeparatorPosition - Set to 2,3 (first block of 3 digits from right, and then in blocks of 2)
-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
    var revenueChart = new FusionCharts({
        type: 'column2d',
        renderAt: 'chart-container',
        width: '500',
        height: '350',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "theme": "fint",
                "caption": "Quarterly Revenue (in INR)",
                "subcaption": "Last year",
                "xaxisname": "Quarter",
                "yaxisname": "Amount (In INR)",
                "numberPrefix": "INR ",
                "formatNumberScale": "0",
                "rotateValues": "0",
                "placeValuesInside":"0",
                "valueFontColor": "#000000",
                "valueBgColor": "#FFFFFF",
                "valueBgAlpha": "50",
                //Customizing thousand separator position
                //(first block of 3 digits from right, and then in blocks of 2)
                "thousandSeparatorPosition": "2,3"
            },
            "data": [
                {
                    "label": "Q1",
                    "value": "125232"
                }, 
                {
                    "label": "Q2",
                    "value": "257023"
                }, 
                {
                    "label": "Q3",
                    "value": "203753"
                }, 
                {
                    "label": "Q4",
                    "value": "182357"
                }
            ]
        }
    }).render();

});