JSFiddle - React, Tailwind, and code Playground

by sridhar reddy

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: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function() {
  $('#container').highcharts({
    xAxis: [{
      categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
        'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
      ],
      crosshair: true
    }],
    yAxis: [{
      height: '50%',
      min: 0,
      max: 60,
      top: '50%',
      reversed: true,
    }, {
      opposite: false,
      height: '50%',
      min: 0,
      max: 60,
    }],

    series: [{
      data: [10, 10, 20, 10, 30, 20, 10, 40, 10, 20, 30, 10],
      yAxis: 0,
      type: 'column',
    }, {
      data:  [null, null, 30, 20, 10, 40, 10, 20],
      yAxis: 1,
      type: 'column',
      color: '#009688'
    }]
  });
});