Configuring number scale

500950

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>
<!-- 
Configuring number of decimal places to round numbers to. Attributes:
    # decimals - Number of decimal places to round to.

Deviation from theme:
    # placeValuesInside - Set to 0
    # rotateValues - Set to 0
    # valueFontColor - Set to #000000
-->
<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": {
                "caption": "Quarterly Revenue",
                "subcaption": "For Las Topanas",
                "xaxisname": "Quarter",
                "yaxisname": "Amount (In USD)",
                //Deviation from theme
                "placeValuesInside" :"0",
                "rotateValues": "0",
                "valueFontColor": "#000000",
                "formatNumberScale":"1",
                "numberScaleValue":"10000",
                "numberScaleUnit":"만원",
                "theme": "fint"
            },
            "data": [
                {
                    "label": "Quarter 1",
                    "value": "10000"
                }, 
                {
                    "label": "Quarter 2",
                    "value": "100000"
                }, 
                {
                    "label": "Quarter 3",
                    "value": "1000000"
                }
            ]
        }
    });
    
    revenueChart.render();
});