JSFiddle - React, Tailwind, and code Playground

by JoeKuan

HTML

<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>
	<body>
  <div style="border: 2px solid #a1a1a1; width:350; height: 150; border-radius: 3px; " >
     <div id="container" ></div>
  </div>
	</body>

JavaScript

$(function () {
    var chart;
    $(document).ready(function() {
        document.title = "Highcharts " + Highcharts.version;

        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                height: 250
            },
            title: {
                text: 'Market Data: Nasdaq & Dow Jones'
            },
            subtitle: {
                text: 'May 11, 2012'
            },
            xAxis: {
                type: 'datetime',
                labels: {
                    formatter: function() {
                      return Highcharts.dateFormat('%I:%M %P', this.value);
                    },
                    y: 17 
                },
               gridLineDashStyle: 'dot',
               gridLineWidth: 1,
               lineWidth: 2,
               lineColor: '#92A8CD',
               tickWidth: 3,
               tickLength: 6,
               tickColor: '#92A8CD',
               minPadding: 0.02,
               maxPadding: 0.02,
               offset: 1
            },
            yAxis: [{
                title: {
                    text: 'Nasdaq'
                },
                lineWidth: 2,
                lineColor: '#4572A7',
                tickWidth: 3,
                tickLength: 6,
                tickColor: '#4572A7'
              }, {
                title: {
                    text: 'Dow Jones'
                },
                opposite: true,
                lineWidth: 2,
                lineColor: '#AA4643',
                tickWidth: 3,
                tickLength: 6,
                tickColor: '#AA4643'
            }],
            credits: {
                enabled: false
            },
            series: [{
              name: 'Nasdaq',
              color: '#4572A7',
              yAxis: 0,
              data: [ [ Date.UTC(2012, 4, 11, 9, 30), 2606.01 ], [ Date.UTC(2012, 4, 11, 10), 2622.08 ],  
                      [ Date.UTC(2012, 4, 11, 10, 30), 2636.03 ], [...