Highcharts : adding a plotline on x-axis

by Michel Penke

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: 'areaspline'
        },
        plotOptions: {
            areaspline: {
                fillOpacity: 0.5,
                stacking: 'normal'
            }
        },
        series: [{
            name: 'CPM',
            data: [1, 3, 4, 3, 5, 4, 10, 12]
        }, {
            name: 'IMPS',
            data: [1, 1, 3, 4, 3, 3, 5, 4]
        }]

    });
});