JSFiddle - React, Tailwind, and code Playground

by sridhar reddy

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

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            inverted: false
        },
        yAxis: {
            title: {
                text: "Time"
            },
            type: "datetime",
            lineWidth: 1,
            min: 1411657879387,
            max: 1413385879388
        },
        xAxis: {
            reversed: false,
            min: 30,
            max: 45,
            title: {
                text: "Temperature"
            }
        },
        plotOptions: {
            scatter: {
                lineWidth: 2
            }
        },

        series: [{
            name: "Medication",
            type: "columnrange",
            pointWidth: 20,
            pointInterval: 10,
            colorByPoint: true,
            colors: ["#FFBA50", "#F1488F"],
            data: [{
                name: "Paracetamol",
                x: 31,
                low: 1412089879388,
                high: 1412694679388
            }, {
                name: "Ibuprofen",
                x: 33,
                low: 1412521879388,
                high: 1412953879388
            }]
        }, {
            name: "Temperature",
            type: "scatter",
            //pointStart: 1411657879387,
            //pointInterval: 345600000,
            data: [
                [36, 1411659252538],
                [36, 1411745652538],
                [39, 1411832052538],
                [36, 1411918452538],
                [38, 1412004852538],
                [36, 1412091252538],
                [38, 1412177652538],
                [37, 1412264052538],
                [38, 1412350452538],
                [34, 1412436852538],
                [37, 1412523252538],
                [34, 1412609652538],
                [39, 1412696052538],
                [36, 1412782452538],
                [36, 1412868852538],
                [39, 1412955252538],
                [36, 1413041652538],
                [36, 1413128052538],
                [36,...