Erinnjoy
Posts: 14
Joined: Tue Sep 27, 2016 8:31 pm

Bring one series to the front

Hi,

I'm building a line chart with like 45 cities in it and I want to highlight the national average by changing the color. I've done this, but the national series is buried behind all of the other series...how can I bring it to the front? Thank you!
pawel_d
Posts: 1910
Joined: Thu Jun 02, 2016 10:28 am

Re: Bring one series to the front

Hi Erinnjoy,

You can set zIndex of each series to specify its order of display or just changing this property on mouseOver() event. Please, look at the demo and hover on one of the series to see how it works.

API Reference:
http://api.highcharts.com/highcharts/se ... %3E.zIndex

Example:
http://jsfiddle.net/r890aact/4/

Regards.
Paweł Dalek
Highcharts Developer

Return to “Highcharts Cloud”