JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript" src="http://www.highcharts.com/js/testing-stock-exporting.js"></script>
<script type="text/javascript" src="http://www.highcharts.com/samples/data/ohlc.js"></script>
<div id="container" style="height: 500px"></div>
JavaScript
jQuery(function() {
// Create the chart
window.chart = new Highcharts.StockChart({
chart: {
renderTo: 'container'
},
rangeSelector: {
selected: 1
},
title: {
text: 'USD to EUR exchange rate'
},
xAxis: {
maxZoom: 14 * 24 * 3600000 // fourteen days
},
yAxis: {
title: {
text: 'Exchange rate'
}
},
series: [{
type: 'candlestick',
name: 'USD to EUR',
data: [
[1059868800000,1,2,3,4],
[1059955200000,1,2,3,4],
[1060041600000,1,2,3,4],
[1060128000000,1,2,3,4],
[1060214400000,1,2,3,4],
[1060300800000,1,2,3,4],
[1060473600000,1,2,3,4]]
}]
});
});