JSFiddle - React, Tailwind, and code Playground

by shorif2000

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        'chart': {
            'type': 'columnrange',
                'inverted': true,
        },
            'exporting': {
            'enabled': true
        },
            'title': {
            'text': 'Projects incomplete in 2013'
        },
            'xAxis': {
            'categories': ["Ltd 2D Marine", "Nordland Reporcessing-NPD", "Heritage Tanzania", "Test Reprocessing", "MultiClient South Africa", "Fastnet OffshWest Shetland", "Lime Petroleum Guinea Bissau", "OffShore Madagascar MC", "Pelotas Reprocessing 2013", "Uruguay Reprocessing 2013"]
        },
            'yAxis': {
            'title': 'Date',
                'type': 'datetime',
                'dateTimeLabelFormats': {
                'month': '%b'
            },
                'min': Date.UTC(2013, 00, 01)
        },
            'tooltip': {
            formatter: function () {
                console.log(this);
                return '<b>' + this.series.name + ':</b> ' + Highcharts.dateFormat('%e %b, %Y', this.point.low) + ' - ' + Highcharts.dateFormat('%e %b, %Y', this.point.high) + '<br/>';
            }
        },
            'legend': {
            'enabled': false
        },
            'series': [{
            'name': 'Start - End',
                'data': [
                [1357603200000, 1373324400000],
                [1360886400000, 1.3686588e+12],
                [1359072000000, 1374793200000],
                [1.36296e+12, 1365721200000],
                [1.3593312e+12, 1.3750524e+12],
                [1.3709052e+12, 1.3868064e+12],
                [1.3685724e+12, 1373929200000],
                [1368054000000, 1.3840416e+12],
                [1369868400000, 1383264000000],
                [1.3668444e+12, 1374793200000]
            ]
        }, {
            'name': 'Forecast',
                'data': [
                [1357603200000, 1372069142000], {
                    
                    "low": 1360886400000,
            ...