JSFiddle - React, Tailwind, and code Playground

by Bernhard Kern

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({

        chart: {
            renderTo: 'container'
        },
        xAxis: [{
            type: 'datetime',
            min: new Date('2016/02/22').getTime(),
            max: new Date('2016/03/05').getTime()
            
        }, {
            type: 'datetime',
            min: new Date('2015/02/22').getTime(),
            max: new Date('2015/03/06').getTime()
        }],

        series: [{
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
            pointStart: Date.UTC(2016, 1, 22),
            pointInterval: 24 * 3600 * 1000 // one day
        }, {
            data: [176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0],
            pointStart: Date.UTC(2015, 1, 22),
            pointInterval: 24 * 3600 * 1000, // one day
            xAxis: 1
        }]
    
    });
    
    
});