Highcharts Demo
author(s): Torstein Hønsi
by koh_edwin
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>
JavaScript
let data = [];
for (let i = 0; i < 48; i++) {
data.push(['month' + i, 2 + i * 2])
}
console.log(data)
Highcharts.chart('container', {
chart: {
type: 'column'
},
xAxis: {
type: 'category',
labels: {
overflow: 'allow',
rotation: -90,
step:8,
style: {
fontSize: 9
}
},
gridLineWidth: 1
},
series: [{
data: data
}]
});