FusionCharts - Gallery Example - Multi-Series Column 2D Chart
Created using FusionCharts Suite XT - www.fusioncharts.com
by FusionCharts
HTML
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var salesChart = new FusionCharts({
type: 'column2d',
renderAt: 'chart-container',
width: '450',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Weekly Sales (In '000 USD)",
"subcaption": "Last 7 weeks",
"numberPrefix": "$",
"xaxisname": "Week #",
"yaxisname": "Sales (in '000 USD)",
"placeValuesInside": "0",
"rotateValues": "0",
"valueFontColor": "#000000",
//Configuring Decimal Places
"decimals": "2",
//Allow to add trailing zeros in decimal part
"forceDecimals": "1",
//Theme
"theme": "fusion"
},
"data": [{
"label": "Week 1",
"value": "8"
}, {
"label": "Week 2",
"value": "7.22"
}, {
"label": "Week 3",
"value": "6.23"
}, {
"label": "Week 4",
"value": "8"
}, {
"label": "Week 5",
"value": "6.25"
}, {
"label": "Week 6",
"value": "7.5"
}, {
"label": "Week 7",
"value": "7.37"
}]
}
})
.render();
});