JSFiddle - React, Tailwind, and code Playground

by holden321

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: 400px; min-width: 310px"></div>

JavaScript

$(function() {

    var data=[
        [1357084000000,1],
        [1357761600000,2],
        [1385841600000,3]
    ];
	
		$('#container').highcharts('StockChart', {
			

			rangeSelector : {
				selected : 5,
				inputEnabled: $('#container').width() > 480
			},

			title : {
				text : 'AAPL Stock Price'
			},
			
			series : [{
				name : 'AAPL',
				data : data,
				tooltip: {
					valueDecimals: 2
				}
			}]
		});

});