JSFiddle - React, Tailwind, and code Playground

by navindian

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

        // Create the chart
        window.chart = new Highcharts.StockChart({
            chart : {
                renderTo : 'container'
            },
            
            legend:{
                enabled :true
            },

            series : [{
                name : 'Operational Messages',
                data : data,
                id : 'dataseries'
            },
            // the event marker flags
            {
                type : 'flags',
                data : [{
                    x : Date.UTC(2011, 3, 25),
                   
                }, {
                    x : Date.UTC(2011, 3, 28),
                  
                }, ],
                onSeries : 'dataseries',
                shape : 'circlepin',
                width : 16
            }]
        });
    });
});