JSFiddle - React, Tailwind, and code Playground

by davidfuhr

HTML

<script src="http://code.highcharts.com/stock/highstock.js"></script>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>asd</title>
    </head>
    <body>
        <div id="container" style="width: 500px; height: 300px; margin: 0 auto"></div>
    </body>
</html>

JavaScript

chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            defaultSeriesType: 'area',
        },
        legend: {
            enabled: true,
        },
        tooltip: {
            shared: true,
        },
        xAxis: {
            categories: [2009, 2010, 2011]
        },
        yAxis: {
            title: {
                text: 'Gross Profit in USD',
            },
        },
        plotOptions: {
            series: {
                marker: {
                    enabled: false,
                },
                states: {
                    hover: {
                        enabled: false
                    }
                },
                stacking: 'normal'
            },
        },
        series: [{
            name: 'Company A',
            data: [20000, 25000, 23000, 20000],
        }, {
            name: 'Company B',
            data: [5000, 10000, -5000, -7000],
        }, {
            name: 'Company C',
            data: [null, null, 0, -15000],
        }]
    });