PointLineSeries Z-Index

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

Claudio_G
Posts: 13
Joined: Fri Sep 15, 2017 7:28 am

PointLineSeries Z-Index

Post by Claudio_G » Thu Oct 19, 2017 11:43 am

Good afternoon,
I have a chart where i plot multiple live data sources. The list of live data sources is also displayed in an external listbox which acts as a legend. When my user hovers on an item of the listbox, the series line width is automatically increased and a call to SetHighlight() makes the hovered item stand out in the plot. However the plot lines are one on top of the other and the order seems to match the order in which I added them to the ViewXY.PointLineSeries.

Is there a way of bringing a specific series to the top, i.e. is plotted in front of all the others?

Regards

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: PointLineSeries Z-Index

Post by ArctionKestutis » Thu Oct 19, 2017 12:10 pm

Hello,

Each series is rendered in order of its appearance in the list (ViewXY.PointLineSeries). Therefore, first series will be most likely masked, while last series will be at the top. You most likely don't want to change order in the list. Then the workaround is to copy corresponding Series’ points, change Width, set Highlight and add at the end of list (just remove extra line from the list then not needed).

All the best.