nathancahill
nathancahill

Reputation: 10850

Highcharts display grid over plot with z-index

I'm trying to display a graph with the xAxis and yAxis grid lines overlayed on top of the plot.

I can set the zIndex of the plot, but there doesn't seem to be an option to set the zIndex of the grid. If it's not possible, I can lower the opacity of the plot so that the grid shows through from underneath, but I'd rather not do it that way.

Upvotes: 2

Views: 4385

Answers (1)

SteveP
SteveP

Reputation: 19103

I can't find a way. Even setting zIndex on the series to -99 makes no difference. Have you considered using plot lines or plot bands to draw your own? These both support zIndex.

Update:

Original poster found that the highstock gridZIndex option works for highcharts.

http://api.highcharts.com/highstock#xAxis.gridZIndex

Upvotes: 4

Related Questions