sreeharsha27
Posts: 50
Joined: Tue Dec 03, 2019 5:14 am

Issue with Line coming behind bars and not showing points in Barline chart

Hello guys,

I found this example from jsfiddle and this is exactly what's happening in my code too

https://jsfiddle.net/gh/get/library/pur ... ies/yaxis/

If you look at this example, the line is going behind the bars for the month of Jan, Feb, Nov and Dec
This is making the data points go invisible

The question is how to bring this line in front of the bars and make sure none of the data points are hidden on line behind the bars

Please advise, thank you
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Issue with Line coming behind bars and not showing points in Barline chart

Hi sreeharsha27,

Thanks for contacting us with your question.

There are two options in this case:
- Adjust order of series in series array. The one with higher index is always on top:
https://jsfiddle.net/BlackLabel/k3gqotx2/

- set zIndex property:
https://jsfiddle.net/BlackLabel/dps27hw3/

Let me know if that was what you were looking for!
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”