JSFiddle - React, Tailwind, and code Playground

by zumwalt

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

JavaScript

$(function () {
        $('#container').highcharts({
            chart: {
                height: 300,
                type: 'line',
                marginRight: 0,
                marginBottom: 25,
                width: 316
            },
            colors: [
               '#ee7b4b', 
               '#0d233a', 
               '#8bbc21', 
               '#910000', 
               '#1aadce', 
               '#492970',
               '#f28f43', 
               '#77a1e5', 
               '#c42525', 
               '#a6c96a'
            ],
            title: {
                text: 'Income Forecast',
                x: -20 //center
            },
            credits: {
                enabled: false
            },
            subtitle: {
                text: '',
                x: -20
            },
            xAxis: {
                categories: ['Nov', 'Dec', 'Jan',
                    'Feb', 'Mar', 'Apr']
            },
            yAxis: {
                title: {
                    text: ''
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                valueSuffix: '°C'
            },
            legend: {
                enabled: false,
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -10,
                y: 100,
                borderWidth: 0
            },
            series: [{
                name: 'Income',
                data: [3, 4, 3, 6, 7, 4],
            }]
        });
    });