viewxy - show 1 series on top?

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

viewxy - show 1 series on top?

Post by greggorob64 » Wed Sep 21, 2016 8:40 pm

hello:

I have 20+ axes (in overlaid mode). Each axes has a single sampledataseries, and all axes have 'axisvisible' set to false. It yields a graph that looks like this (shown below)

Here's my goal, and i'm not sure how to accomplish it: based on the 'focused' row on in the top grid, i want to have that trace show 'on top' of the rest of the traces. Its very common for lines to have large overlappign regions, and we'd like the user to click on the trace so they can visually follow it through the graph. We may also increase the line thickness, but thats an easy portion.

How do I get a single series (or axis) to show on top of all the others?

Thanks!

Image

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: viewxy - show 1 series on top?

Post by ArctionPasi » Thu Sep 22, 2016 2:55 am

Hi Greg,

set MouseDown event handler for each series. In the handler, sort ViewXY.SampleDataSeries list so that the clicked series becomes last in the list. Then it'll render topmost.
LightningChart Support Team, PT

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: viewxy - show 1 series on top?

Post by greggorob64 » Thu Sep 22, 2016 12:46 pm

As always, thanks for the quick response. Works great!

(black trace is on top and width=2 now)

Image

Post Reply