JSFiddle - React, Tailwind, and code Playground
by Minas Aslanyan
HTML
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/highcharts-more.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
// Notice that the dataset has missing data
$.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function (data) {
$('#container').highcharts('StockChart', {
chart: {
type: 'arearange'
},
rangeSelector: {
selected: 2
},
title: {
text: 'Temperature variation by day'
},
tooltip: {
valueSuffix: '°C'
},
series: [{
name: 'Temperatures',
data: [
[3500, 0, 25],
[3571, 0, 26],
[3671, 0, 27],
[3771, 0, 28],
[3871, 0, 29],
[3971, 0, 30],
[4071, 0, 31],
[4171, 0, 32],
[4271, 0, 33]
]
}]
});
});
});