Highcharts Demo

author(s): Torstein Hønsi

by Saurabh Khemka

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container"></div>

CSS

#container {
	min-width: 310px;
	max-width: 800px;
	height: 400px;
	margin: 0 auto
}

JavaScript

Highcharts.chart('container', {
    chart: {
        marginTop: 100,
        marginBottom: 100,
        marginLeft: 100,
        marginRight: 100
    },
    title: {
        text: 'Economics'
    },

    subtitle: {
        text: ''
    },
    credits: {
        enabled: false
    },
    xAxis: {
        categories: ['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15']
    },
    yAxis: {
        title: {
            align: 'high',
            text: 'By End 2018',
            rotation: 0,
            y: -20,
            textAlign: 'left',
            margin: 0
        },
        gridLineWidthWidth: 0,
        gridLineWidth: 0
    },
    navigation: {
        buttonOptions: {
            enabled: false
        }
    },
    legend: {
        enabled: false
    },

    plotOptions: {
        line: {
            marker: {
                enabled: false
            }
        }
    },

    series: [{
        name: '',
        data: [-0.20, -0.20, -0.30, -0.30, -0.40, -0.60]
    }, {
        name: '',
        data: ['', '', -0.40, -0.40, -0.40, -0.20]
    }, {
        name: '',
        data: ['', '', '', -0.120, -0.310, -0.440]
    }]

});