JSFiddle - React, Tailwind, and code Playground

by Khalil Zhang

HTML

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

JavaScript

$(function () {
    $('#container').highcharts({
        credits: {
            enabled: false
        },
        xAxis: {
            categories: ['1', '2']
        },
        yAxis: {
            title: {
                text: 'tpmC'
            },
            plotLines: [{
                value: 0,
                width: 11,
                color: 'red'
            }]
        },
        tooltip: {
            valueSuffix: '°C'
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: '1 Warehouse',
            data: [7.0, 6.9]
        }, {
            name: '2 Warehouse',
            data: [11, 6.8]
        }]
    });
});