casraf
casraf

Reputation: 21694

Highcharts static line with background color below it

I need a "minimum" style line that is spread across value y and is static at it. What I have so far:

yAxis: {
    plotLines: [{
        color: 'red',
        width: 2,
        value: <?=$product[0]['current_price']?>
    }]
}

Now what I want to do, is take the background below this line, and color it. How do I achieve that?

Upvotes: 0

Views: 292

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

Unfortunately background under plotLine is not supported. You can only use Renderer http://api.highcharts.com/highcharts#Renderer and add extra shape, or use plotBand, below plotLine.

http://api.highcharts.com/highcharts#xAxis.plotBands

Upvotes: 1

Related Questions