kaitosenpai
kaitosenpai

Reputation: 1013

Highstock - Draw Line on yAxis in front of the chart

In this example JS Fiddle.

The Line appear behind the chart.

Is it possible to draw the line in front of the chart?

Thank you for your help?

The code:

(function() {
$('#container').highcharts('StockChart', {

    chart: {
    },

    yAxis: {
        plotLines: [{
            value: 0.696,
            width: 5,
            color: 'green',
            dashStyle: 'dash',
            label: {
                text: 'Latest value',
                align: 'right',
                y: 12,
                x: 0
            }
        }]
    },

    rangeSelector: {
        selected: 1
    },

    series: [{
       type: 'area',
        name: 'USD to EUR',
        data: usdeur
    }]
});
});

Upvotes: 1

Views: 965

Answers (1)

BobTheBuilder
BobTheBuilder

Reputation: 19284

Try using plotLine zIndex property.

http://api.highcharts.com/highstock#xAxis.plotLines.zIndex

Upvotes: 1

Related Questions