JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<div id="container" style="height: 500px; min-width: 500px"></div>
JavaScript
$(function () {
// Create the chart
$('#container').highcharts('Chart', {
rangeSelector: {
selected: 1
},
title: {
text: ''
},
yAxis: {labels: {
enabled: false
},
gridLineWidth: 0,
title: null,
"startOnTick": true,
plotLines: [{
label: {
text: 'Baseline',
x: 25
},
color: 'orange',
width: 2,
value: 15,
dashStyle: 'longdashdot'
}],
},
series: [{
name: 'KPN12345',
data: [
[1327881600000, -1],
[1327968000000, 10],
[1328054400000, -2]
],
threshold: 0,
negativeColor: 'green',
color: 'red',
tooltip: {
valueDecimals: 2
}
}]
});
});