JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<div id="container" style="height: 400px; min-width: 600px"></div>
<script src="http://code.highcharts.com/stock/highstock.js"></script>
JavaScript
$(function () {
function tooltipFormatter() {
return '<b>' + Highcharts.dateFormat('%H:%M', this.x) + '</b><br>' + this.series.name + ":" + this.y;
}
Highcharts.setOptions({
global: {
useUTC: false
}
});
chart = new Highcharts.StockChart({
chart: {
renderTo: 'container',
zoomType: 'x',
plotBorderWidth: 1
},
title: {
text: ""
},
navigator: {
enabled: false
},
rangeSelector: {
enabled: false
},
plotOptions: {
series: {
stickyTracking: false,
dataGrouping: {
enabled: false
}
}
},
tooltip: {
animation: false,
crosshairs: false,
shared: false,
formatter: tooltipFormatter
},
credits: {
enabled: false
},
credits: {
enabled: false
},
xAxis: {
min: 1361815200000,
max: 1361829780000,
tickInterval: 15 * 60 * 1000,
minTickInterval: 15 * 60 * 1000,
gridLineWidth: 2,
labels: {
formatter: function () {
var d = new Date(this.value);
return (d.getMinutes() == 0) ? '<b>' + Highcharts.dateFormat('%H:%M', this.value) + '</b>' : d.getMinutes();
}
}
},
yAxis: {
lineWidth: 2,
min: 0,
max: 250,
offset: 0,
tickInterval: 50,
labels: {
align: 'right',
x: -5,
y: 3
}
},
series: [{
name: "systolic",
id: "systolic",
type: 'scatter',
color: '#A4A4A4',
marker: {
radius: 8,
...