Highcharts Demo
author(s):
Torstein Hønsi
by Vignesh Gopalakrishnan
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
JavaScript
Highcharts.Renderer.prototype.symbols.line = function(x, y, width, height) {
return [
'M',
x,
y + width / 2,
'L',
x + height,
y + width / 2
];
};
Highcharts.chart('container', {
"chart": {
"type": "bar",
"className": "",
"events": {},
"ignoreHiddenSeries": true,
"marginBottom": null,
"marginLeft": null,
"marginRight": null,
"marginTop": null,
"spacingBottom": null,
"spacingLeft": null,
"spacingRight": null,
"spacingTop": null,
"pinchType": "x",
"zoomType": "xy",
"panning": false,
"panKey": "shift",
"plotShadow": false,
"reflow": true,
"shadow": false,
"showaxes": false,
"resetZoomButton": {
"position": {
"align": "right",
"verticalAlign": "top"
},
"theme": {
"fill": "#FFFFFF",
"r": 3,
"style": {
"color": "#000000"
},
"states": {
"hover": {
"fill": "#C0C0C0",
"style": {
"color": "#000000"
}
}
}
}
},
"backgroundColor": "",
"borderColor": "",
"borderRadius": 0,
"borderWidth": 1,
"plotBackgroundColor": "#FFFFFF",
"plotBackgroundImage": "",
"plotBorderColor": "",
"plotBorderWidth": 0
},
"title": {
"text": ""
},
"credits": {
"enabled": false,
"href": "visualbi.com",
"position": {
"align": "right",
"verticalAlign": "bottom",
"x": 0,
"y": -5
},
"text": "Visual BI Solutions",
"style": {
"color": "#000000",
"fontSize": "10px",
"fontFamily": "Calibri",
"fontWeight": "normal",
"cursor": "normal"
}
},
"exporting": {
"buttons": {
"contextButton": {
"enabled": true,
"align": "right",
"verticalAlign": "top",
"symbol": "menu",
"symbolFill": "#A8BF77",
"symbolSize": 14,
"symbolStroke":...