Stacked charts with non uniform groups
Created using FusionCharts Suite XT - www.fusioncharts.com
by Nabajeet Sonowal
March 19, 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>
<!-- basic Sample for Stacked Column 3D Line Single Y Chart. -->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var analysisChart = new FusionCharts({
type: 'stackedColumn3DLine',
renderAt: 'chart-container',
width: '500',
height: '350',
dataFormat: 'json',
dataSource: {
"chart": {
"showvalues": "0",
"caption": "Cost Analysis",
"numberprefix": "$",
"xaxisname": "Quarters",
"yaxisname": "Cost",
"showBorder": "0",
//"paletteColors": "#0075c2,#1aaf5d,#f2c500",
"bgColor": "#ffffff",
"canvasBgColor": "#ffffff",
"captionFontSize": "14",
"subcaptionFontSize": "14",
"subcaptionFontBold": "0",
"divlineColor": "#999999",
"divLineIsDashed": "1",
"divLineDashLen": "1",
"divLineGapLen": "1",
"toolTipColor": "#ffffff",
"toolTipBorderThickness": "0",
"toolTipBgColor": "#000000",
"toolTipBgAlpha": "80",
"toolTipBorderRadius": "2",
"toolTipPadding": "5",
"legendBgColor": "#ffffff",
"legendBorderAlpha": '0',
"legendShadow": '0',
"legendItemFontSize": '10',
"legendItemFontColor": '#666666'
},
"categories": [
{
"category": [
{
"label": "Quarter 1"
},
{
"label": "Quarter 2"
},
{
"label": "Quarter 3"
},
{
"label": "Quarter 4"
}
]
}
],
"dataset": [
...