Highcharts Demo

author(s): Torstein Hønsi

by koh_edwin

HTML

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

<div id="container" style="height: 400px"></div>

JavaScript

Highcharts.chart('container', {
    plotOptions: {
        series: {
            color: 'purple'
        }
    },
    tooltip: {
        formatter: function () {
            return '<b>' + this.x +
                '</b>: <b>' + ((this.x==4) ? 'Suppressed' : this.y) + '</b>';
        }
    },

    series: [{
        data: [{x: 1, y: 435, color:'blue'}, {x: 2, y: 437, color:'blue'}, {x: 3, y: 455, color:'blue'}, {x: 4, y: (455+555)/2, color:'none'}, {x: 5, y: 555, color:'blue'},{x: 6, y: 435, color:'blue'}],
        zoneAxis: 'x',
        zones: [{value: 3}, {value: 5, color: 'none'}]
        
    }]
});