JSFiddle - React, Tailwind, and code Playground
by mustapha mekhatria
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: [{
id:"a",
name: 'Temperatures',
data: [[0,10,20], [10,13,22], [20,14,15], [30,10,21], [40,5,6]]
}, {
type: 'flags',
//onSeries: "a",
data:[{
x:10,
y:22,
title: "asg"
}]
}]
});
});
});