JSFiddle - React, Tailwind, and code Playground
bar datetime
by core972
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px; width: 500px"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'bar',
backgroundColor:'transparent',
zoomType:'y'
},
title: {
text: ''
},
xAxis: {
},
yAxis: {
min: Date.UTC(2011, 4, 30),
type: 'datetime',
// "tickInterval": 86400000,
// "minTickInterval": 86400000,
/*dateTimeLabelFormats: {
day: '%Y %b %e'
},*/
title: {
enabled: false
}
},
legend: {
enabled: false
},
plotOptions: {
series: {
//stacking: 'normal'
}
},
series: [
{
name: 'down1',
data: [1304215210],// [83621000],
color: 'red'
}, {
name: 'up1',
data: [1304244920],// [83621000],
color: 'green'
}, {
name: 'down2',
data: [1304436320],// [83621000],
color: 'red'
}, {
name: 'up2',
data: [1304475320],// [83621000],
color: 'green'
}]
});