JSFiddle - React, Tailwind, and code Playground
by minagabriel
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() {
var data = [[1115683200000,36.42],
[1115769600000,35.61],
[1117497600000,39.76]]
for(var i= 0 ; i< data.length ; i++ ){
alert('mina') ;
}
// Create the chart
window.chart = new Highcharts.StockChart({
chart : {
renderTo : 'container'
},
rangeSelector : {
selected : 1
},
title : {
text : 'AAPL Stock Price'
},
series : [{
name : 'AAPL',
type : 'area' ,
data : data,
tooltip: {
valueDecimals: 2
}
}]
});
});