JSFiddle - React, Tailwind, and code Playground
by tannm
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 id = "htmlgraph"></div>
</div>
JavaScript
var MainData;
$(function() {
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(dat) {
// Create the chart
var csv = "07-10-2011 08:00;;;;336.7000;51;|07-10-2011 09:00;;;;338.0000;2525;|07-10-2011 09:01;;;;337.2000;4538;|07-10-2011 09:02;;;;337.2000;6184;|07-10-2011 09:03;;;;337.4000;500;|07-10-2011 09:04;;;;337.1000;4725;|07-10-2011 09:05;;;;337.0000;1916;|07-10-2011 09:06;;;;337.3000;350;|07-10-2011 09:08;;;;337.6000;1427;|07-10-2011 09:10;;;;337.5000;22;|07-10-2011 09:11;;;;338.0000;319;|07-10-2011 09:12;;;;337.6000;5277;|07-10-2011 09:13;;;;337.6000;535;|07-10-2011 09:14;;;;337.7000;703;|07-10-2011 09:15;;;;337.6000;2517;|07-10-2011 09:16;;;;337.7000;260;|07-10-2011 09:17;;;;337.7000;1558;|07-10-2011 09:18;;;;337.9000;427;|07-10-2011 09:20;;;;338.0000;600;|07-10-2011 09:21;;;;338.1000;822;|07-10-2011 09:23;;;;339.2000;1157;|07-10-2011 09:24;;;;339.7000;3730;|07-10-2011 09:25;;;;339.6000;1600;|07-10-2011 09:26;;;;339.6000;951;|07-10-2011 09:27;;;;339.3000;1239;|07-10-2011 09:28;;;;339.1000;376;|07-10-2011 09:29;;;;339.1000;97;|07-10-2011 09:30;;;;339.6000;1397;|07-10-2011 09:31;;;;340.4000;10093;|07-10-2011 09:32;;;;341.3000;2494;|07-10-2011 09:33;;;;341.5000;2676;|07-10-2011 09:34;;;;341.4000;200;|07-10-2011 09:35;;;;341.2000;297;|07-10-2011 09:36;;;;340.0000;1091;|07-10-2011 09:37;;;;340.0000;822;|07-10-2011 09:38;;;;340.6000;1342;|07-10-2011 09:39;;;;340.9000;698;|07-10-2011 09:41;;;;341.3000;1075;|07-10-2011 09:42;;;;341.9000;114;|07-10-2011 09:43;;;;342.3000;3488;|07-10-2011 09:44;;;;342.5000;570;|07-10-2011 09:45;;;;342.5000;1935;|07-10-2011 09:46;;;;342.4000;1015;|07-10-2011 09:47;;;;342.9000;5348;|07-10-2011 09:48;;;;343.0000;2890;|07-10-2011 09:49;;;;343.4000;3371;|07-10-2011 09:50;;;;343.8000;3747;|07-10-2011 09:51;;;;344.6000;4752;|07-10-2011 09:52;;;;343.9000;1586;|07-10-2011 09:53;;;;343.5000;364;|07-10-2011 09:54;;;;343.8000;100;|07-10-2011 09:55;;;;343.4000;1636;|07-10-2011...