FusionCharts - Gallery Example - Bar 2D Chart
Created using FusionCharts Suite XT - www.fusioncharts.com
by stefanpetrovic
December 02, 2015
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.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: '552',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Top 5 Stores by Sales",
"subCaption": "Last month",
"yAxisName": "Sales (In USD)",
"numberPrefix": "",
"paletteColors": "#BFE8FC",
"bgColor": "#ffffff",
"showBorder": "0",
"showCanvasBorder": "0",
"showPercentValues": "1",
"usePlotGradientColor": "0",
"plotBorderAlpha": "0",
"placeValuesInside": "0",
"valueFontColor": "#000",
"showAxisLines": "1",
"axisLineAlpha": "10",
"divLineAlpha": "10",
"alignCaptionWithCanvas": "0",
"showAlternateVGridColor": "0",
"captionFontSize": "14",
"subcaptionFontSize": "14",
"subcaptionFontBold": "1"
},
"data": [
{
"label": "HI: Security 34%",
"value": "11"
},
{
"label": "HI: Product Operations 31%",
"value": "10"
},
{
"label": "HI: Release Management 16%",
"value": "5"
},
{
"label": "HI: Development 6%",
"value": "2"
}
,
{
"label": "HI: Support 6%",
"value": "2"
},
{
"label": "HI: Cloud Operations 3%",
"value": "1"
}
,
{
...