FusionCharts - Gallery Example - Bar 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/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- Simple implementation of the Bar 2D chart -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var topStores = new FusionCharts({
        type: 'bar2d',
        renderAt: 'chart-container',
        width: '400',
        height: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": { "caption": "Monthly Revenue",
                "subCaption": "Last year",
                "xAxisName": "Month",
                "yAxisName": "Amount (In USD)",
                "numberPrefix": "$",
                "theme": "fint",
                      "maxLabelWidthPercent":"50",
                
            },
            
            "data": [
                {
                    "label": "Bakersfield Central {br}Bakersfield Central{br}Bakersfield Central",
                    "value": "880000"
                }, 
                {
                    "label": "Garden Groove harbour Garden Groove harbour",
                    "value": "730000"
                }, 
                {
                    "label": "Los Angeles Topanga",
                    "value": "590000"
                }, 
                {
                    "label": "Compton-Rancho Dom",
                    "value": "520000"
                }, 
                {
                    "label": "Daly City Serramonte",
                    "value": "330000"
                }
            ]
        }
    })
    .render();
});