JSFiddle - React, Tailwind, and code Playground

by Sushil Mahajan

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

var chartOptions = {
  "chart": {
    "type": "spline",
    "events": {

    },
    "marginRight": 80
  },
  "yAxis": {
    "gridLineWidth": 1,
    "labels": {
      "format": "{value}",
      "align": "left"
    },
    "startOnTick": false,
    "showLastLabel": true,
    "showFirstLabel": true,
    "endOnTick": false,
    "maxPadding": 0.2
  },
  "xAxis": {
    "labels": {
      "y": 20,
      "style": {
        "color": "black"
      }
    },
    "tickLength": 0,
    "events": {

    }
  },
  "legend": {
    "enabled": false
  },
  "navigator": {
    "enabled": true,
    "margin": 5,
    "maskFill": "rgba(92, 191, 145, 0.23)",
    "series": {

    },
    "xAxis": {
      "labels": {
        "style": {
          "color": "black"
        }
      }
    }
  },
  "tooltip": {
    "shared": true,
    "useHTML": true,
    "valueSuffix": "",
    "shape": "callout",
    "crosshairs": false
  },
  "scrollbar": {
    "enabled": true,
    "trackBackgroundColor": "rgb(238, 238, 238)"
  },
  "rangeSelector": {
    "enabled": false,
    "allButtonsEnabled": true,
    "buttonTheme": {
      "fill": "none",
      "stroke": "none",
      "r": 2,
      "style": {
        "color": "black",
        "fontWeight": "normal",
        "fontSize": "1.1rem"
      },
      "states": {
        "hover": {
          "fill": "grey",
          "style": {
            "color": "white"
          }
        },
        "select": {
          "fill": "black",
          "style": {
            "color": "white"
          }
        }
      }
    },
    "inputBoxBorderColor": "white",
    "inputBoxWidth": 80,
    "inputBoxHeight": 18,
    "inputPosition": {
      "x": 0
    },
    "inputStyle": {
      "r": 5,
      "color": "#000",
      "fontSize": "1.1rem",
      "fontWeight": "normal"
    },
    "labelStyle": {
      "color": "black",
      "fontSize": "1.1rem",
      "fontWeight": "normal",
      "fontStyle": "italic"
    },
    "selected": 5
  },
  "plotOptions": {
    "spline": {
      "marker": {
  ...