JSFiddle - React, Tailwind, and code Playground

by Anuradha Pai

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=aapl-ohlcv.json&callback=?', function (data) {


        var series = [{
            name: 'Asia',
            data: [
                [1364292000000, 502],
                [1364294000000, 635],
                [1364296000000, 809],
                [1364298000000, 947],
                [1364300000000, 1402],
                [1364302000000, 3634],
                [1364304000000, 5268]
            ]
        }, {
            name: 'Africa',
            data: [
                [1364292000000, 106],
                [1364294000000, 107],
                [1364296000000, 111],
                [1364298000000, 133],
                [1364300000000, 221],
                [1364302000000, 767],
                [1364304000000, 1766]
            ]
        }, {
            name: 'Europe',
            data: [
                [1364292000000, 163],
                [1364294000000, 203],
                [1364296000000, 276],
                [1364298000000, 408],
                [1364300000000, 547],
                [1364302000000, 729],
                [1364304000000, 628]
            ]
        }];

        var line_data = {
            type:'line',
            yAxis:1,
            data:[
            [1364292000000, 502],
            [1364294000000, 635],
            [1364296000000, 809],
            [1364298000000, 947],
            [1364300000000, 1402],
            [1364302000000, 3634],
            [1364304000000, 5268]
                         ]};
        
series.push(line_data);
        
        // create the chart
        $('#container').highcharts('StockChart', {
            chart: {
                type: 'area',
                renderTo: 'container',
                zoomType: 'x'
            },
            plotOptions: {
                area: {
                    stacking: 'normal'
                }
            },
            rangeSelector: {
                selected: 1
            },

 ...