Accepted answer

plotLines is a sub-option of the yAxis or xAxis config and not a base option as you have it:

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    yAxis: {
        plotLines: [{
                color: '#FF0000',
                width: 2,
                value: 80,
                zIndex: 5

Update fiddle here.

enter image description here


Axis.addPlotLine() api allows to add a line in the axis after the chart has been rendered .

var plotOption = {

                color: '#FF0000',
                dashStyle: 'ShortDash',
                width: 2,
                value: 1000,
                zIndex: 0,
                label : {
                    text : 'Goal'
this.lineChart.yAxis[0].addPlotLine(plotOption) ; 

//where lineChart is the reference to the existing chart

Related Query

More Query from same tag