JSFiddle - React, Tailwind, and code Playground

by shivkumarganesh

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 () {

    // Create the chart
    $('#container').highcharts('StockChart', {


        rangeSelector: {
            selected: 1
        },

        title: {
            text: 'KPN Year View'
        },

        yAxis: {
            plotLines: [{ 
                label: {
                    text: 'Baseline',
                    x: 25
                },
                color: 'orange',
                width: 2,
                value: 15,
                dashStyle: 'longdashdot'
            }],
        },
        
        series: [{
            name: 'KPN12345',
            data: [
                [1327881600000, 11],
                [1327968000000, 18],
                [1328054400000, 12],
                [1328140800000, 5],
                [1328227200000, 11],
                [1328486400000, 17],
                [1328572800000, 10],
                [1328659200000, 10],
                [1328745600000, 15],
                [1328832000000, 10],
                [1329091200000, 11],
                [1329177600000, 6],
                [1329264000000, 9],
                [1329350400000, 8],
                [1329436800000, 6],
                [1329609600000, 1],
                [1329696000000, 9],
                [1329782400000, 11],
                [1329868800000, 15],
                [1329955200000, 2],
                [1330041600000, 5],
                [1330300800000, 12],
                [1330387200000, 14],
                [1330473600000, 19],
                [1330560000000, 9],
                [1330646400000, 9],
                [1330905600000, 14],
                [1330992000000, 15],
                [1331078400000, 22],
                [1331164800000, 10],
                [1331251200000, 7],
                [1331424000000, 1],
                [1331510400000, 11],
                [1331596800000, 12],
                [1331683200000, 12],
                [1331769600000, 19],
                [1331856000000, 8],
                [1332115200000, 17],
       ...