FusionCharts - Gallery Example - Multi-series Bar 2D Chart
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var contentSummaryChart1 = new FusionCharts({
type: 'msbar2d',
renderAt: 'chart-container',
width: '100%',
height: '180',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Sentiment",
"bgColor": "#ffffff",
"bgColor": "#ffffff",
"showBorder": "0",
"borderAlpha": "20",
"canvasBorderAlpha": "0",
"baseFontSize": "14",
"usePlotGradientColor": "0",
"plotBorderAlpha": "10",
"showXAxisLine": "1",
"showYAxisLine": "0",
"showYAxisValues": "0",
"xAxisLineColor": "#999999",
"divlineColor": "#999999",
"showAlternateHGridColor": "0",
"paletteColors": "#2cb32b,#ff2602,#2786f7,#f9f70e",
},
"categories": [{
'category': [{
'label': '08-31-2017'
}, {
'label': '08-30-2017'
}, {
'label': '08-28-2017'
}, {
'label': '08-23-2017'
}, {
'label': '08-22-2017'
}, {
'label': '08-21-2017'
}, {
'label': '08-16-2017'
}, {
'label': '08-09-2017'
}, {
'label': '08-08-2017'
}, {
'label': '08-07-2017'
}, {
'label': '08-03-2017'
}, {
'label': '08-02-2017'
}]
}],
"dataset": [{
'seriesname': 'Negative',
'data': [{
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '1'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}, {
'value': '0'
}]
}, {
'seriesname': 'Positive',
'data': [{
'value': '0'
}, {
...