Highcharts Demo
author(s): Torstein Hønsi
by vasagi
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>
<button id="large">Large</button>
<button id="small">Small</button>
CSS
#container {
height: 300px;
min-width: 310px;
max-width: 800px;
}
JavaScript
const chart = Highcharts.chart('container', {
"chart": {
"type": "line",
"styledMode": false,
"width": null,
"height": null,
"marginTop": 30,
"marginRight": 25,
"className": "vertical-chart line-chart points-no-fill line-chart-marker",
"zooming": {
"mouseWheel": {
"enabled": false
}
},
"style": {
"fontFamily": "Lucida Grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif",
"fontSize": "12px"
},
"events": {},
"resetZoomButton": {
"position": {
"x": 100,
"y": 10
},
"relativeTo": "chart"
}
},
"boost": {
"enable": false,
"useGPUTranslations": false
},
"exporting": {
"enabled": false,
"fallbackToExportServer": false
},
"title": {
"text": ""
},
"xAxis": {
"gridLineWidth": 0,
"gridLineDashStyle": "Solid",
"gridLineColor": "#eeeeee",
"className": "gridLineStyledMode wrapXaxisLabel",
"type": "datetime",
"crosshair": true,
"minTickInterval": 86400000,
"categories": false,
"maxCharCount": 20,
"title": {
"y": 5
},
"labels": {
"rotation": 0
},
"scrollbar": {
"liveRedraw": true,
"barBorderRadius": 6,
"height": 10,
"margin": 10
},
"events": {},
"tickInterval": 86400000
},
"yAxis": {
"title": {
"text": "Total Runtime (h)",
"y": 0
},
"gridLineDashStyle": "shortdot",
"visible": true,
"plotLines": [],
"labels": {},
"events": {}
},
"responsive": {
"rules": [
{
"condition": {},
"chartOptions": {
...