zIndex for series
Hello. First of all - thank you for this amazing library.
I have a question about grid and area series.
- Is there any way to set grid
z-index? Let's suppose that I will changefillopacity to1in this demo. Then grid will be hidden behind the areas. Can I make grid to be shown over all series?
And second question arises from previous:
- Is there any way to set
z-indexfor series?
hey @zefirka
there isn't currently a way to set the grid zindex. it should be pretty easy to add an option for executing the axes & grid draw after the series draw.
however, an arbitrary z-index for the grid (to render it between 2 series) is too niche and would be difficult to implement, so this won't happen.
series are drawn in their defined order, so re-arranging them in your opts & data is a work-around for now. a custom series z-index would also be a useful & simple addition, it can also help with hover-focusing a series which currently relies on opacity manipulation only.
Hi, @leeoniya
Thanks for response.
I'm agree about custom zIndex for grid, it seems that it should be single option for grid to be on top of series or not. If you have not plans to add this option in near future then I can take it to myself and send PR.
And thank you for advice how to reorder series.
Submitted #391