Highcharts Demo

author(s): Torstein Hønsi

HTML

<script src="http://code.highcharts.com/3/highcharts.js"></script>
<script src="https://rawgit.com/blacktail/highcharts-stack-null/master/stack-null.js"></script>
<div id="container" style="height: 300px"></div>

JavaScript

$(function () {
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container'
        },
        title: {
            text: 'The line is connected from April to Juni, despite the null value in May'
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },

        plotOptions: {
            series: {
                stackNull: true
            },
            area: {
                stacking: 'normal'
            }
        },

        series: [
            {
            type: 'area',
            data: [29.9, 71.5, 106.4, 129.2, null, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
        },
                {
            type: 'area',
            data: [29.9, 71.5, 106.4, 129.2, 176.0, null, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
        }]

    });
});