JSFiddle - React, Tailwind, and code Playground

by jpeter06

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({
            chart: {
                type: 'area'
            },
            title: {
                text: 'Irregular point intervalls stacked area'
            },
            yAxis: {
                title: {
                    text: 'value'
                }
            },
            plotOptions: {
                area: {
                    dataLabels: {
                        enabled: true
                    },
                    stacking: 'normal'
                }
            },
            series: [{
                name: 'test 1',
                data: [[0, 7.0], [1, 6.9], [1.9, 9.5], [3, 14.5]]
            }, {
                name: 'test 2',
                data: [[0, 3.9],[1, 4.2], [1.5, 5.7], [3, 8.5]]
            }]
        });
    });