JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 500px; min-width: 500px"></div>
JavaScript
$(function() {
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?', function
(data) {
// Create the chart
window.chart = new Highcharts.StockChart({
chart : {
renderTo : 'container'
},
rangeSelector : {
selected : 0
},
title : {
text : 'Flowsheet'
},
yAxis : {
title : {
text : 'Meds'
},
labels: {
formatter: function() {
return "";
}
}
},tooltip: {
crosshairs:false
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
formatter: function() {
// Can be used to show point name (if defined)
return 'Hardik';
},
y: -10
}
}
},
series : [{
name: 'Tylenol',
color: 'blue',
data:[
[Date.UTC(2011,1,24),0.72],
[Date.UTC(2011,2,21),0.72],
]
},{
name: 'Tylenol',
color: 'green',
data:[
[Date.UTC(2011,1,19),0.55],
[Date.UTC(2011,2,7),0.55]
]
},{
name: 'Tylenol',
color: 'green',
data:[
[Date.UTC(2011,1,19),0.68],
[Date.UTC(2011,2,7),0.68]
]
}]
});
});
});