Highcharts Demo

author(s): Torstein Hønsi

by er1187

HTML

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

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'line'
    },
    title: {
        text: '2017 - Historical P/E rate'
    },
    xAxis: {
        categories: ['Q1', 'Q2', 'Q3', 'Q4', 'Q1', 'Q2', 'Q3', 'Q4', 'Q1', 'Q2', 'Q3', 'Q4', 'Q1', 'Q2', 'Q3', 'Q4']
    },
    yAxis: {
        title: {
            text: 'P/E Rate'
        }
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'P/E actual',
        data: [-0.1, -0.1, -0.4,	-0.2,	-0.6, -0.2, -0.6,	-0.8,	-0.5,	-0.4,	-0.4,	-0.7,	-0.6,	-1.1,	-0.5, -0.3]
    }]
});