JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://github.highcharts.com/issue-2266/highstock.js"></script>

<div id="container" style="height: 500px; min-width: 500px"></div>

JavaScript

$(function() {

      Highcharts.setOptions({
          global : {
              useUTC : false
          }
      });

      // Create the chart
      window.chart = new Highcharts.StockChart({
          chart : {
              renderTo : 'container',
              events : {
                  load : function() {

                      // set up the updating of the chart each second
                      var series = this.series[0];
                      var series1 = this.series[1];
                      var chart = this;
                      setInterval(function() {
                          var x = (new Date()).getTime(), // current time
                          y = Math.round(Math.random() * 100);
                          y1 = Math.round(Math.random() * 100);
                          series.addPoint([x, y], false, true);
                          series1.addPoint([x, y1], false, true);
                          chart.redraw();
                      }, 1000);
                  }
              }
          },

          rangeSelector: {
              buttons: [{
                  count: 1,
                  type: 'minute',
                  text: '1M'
              }, {
                  count: 5,
                  type: 'minute',
                  text: '5M'
              }, {
                  type: 'all',
                  text: 'All'
              }],
              inputEnabled: false,
              selected: 0
          },

          title : {
              text : 'Live random data'
          },
          legend: {
                  align: 'right',
                  layout: 'vertical',
                  verticalAlign: 'top',
                  y: 45,
                  enabled: 'true'
              },

          exporting: {
              enabled: false
          },

          series : [{
              name : 'Random data',
              data : (function() {
                  // generate an array of random data
                  var data = [], time = (new...