JSFiddle - React, Tailwind, and code Playground

by Valentin Radulescu

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 400px"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        title: {
            text: 'Area Chart With Visualization I'
        },
        chart: {
            type: 'area',
        },
        xAxis: {
            type: 'datetime',
        },
        legend: {
            align: 'bottom',
            symbolWidth: 10,
            symbolHeight: 10,
            symbolPadding: 10,
            symbolRadius: 5
        },
        plotOptions: {
            series: {
                pointStart: Date.UTC(2010, 0, 1),
                pointInterval: 24 * 3600 * 1000,
                stacking: 'normal'
            }
        },
        series: [{
            name: 'Apple',
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0] 
        }, {
            name: 'Google',
            data: [219.9, 171.5, 1106.4, 1129.2, 344.0, 1176.0] 
        }]
    });
});