JSFiddle - React, Tailwind, and code Playground
by nunoarruda
HTML
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<div id="container" style="height: 400px; min-width: 310px"></div>
JavaScript
// Create the chart
Highcharts.stockChart('container', {
time: {
timezoneOffset: 420
},
xAxis: {
minRange: 3600 * 1000 // one hour
},
series: [
{
pointInterval: 24 * 3600 * 1000,
data: [1, 2, 3, 4, 5]
}
]
});