ViewXY SampleSeriesMarker: BringToFront?

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

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

ViewXY SampleSeriesMarker: BringToFront?

Post by greggorob64 » Wed Apr 15, 2015 8:42 pm

I have some awesome SampleSeriesMarkers working on my chart, but I have a small issue, it is showing underneath other traces.

Is there a way to make all SampleSeriesMarkers show above all other traces?

Thanks!

Image

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

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by ArctionPasi » Thu Apr 16, 2015 2:52 pm

SeriesEventMarkers are rendered after the owner series. To show them above all other traces, spawn a new empty dummy series after all the data series, and attach the marker to the dummy series.
LightningChart Support Team, PT

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

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by greggorob64 » Mon Apr 20, 2015 11:54 am

In order to spawn this dummy series, do I need to have samples in that dummy series? Memory usage of my graph is a paramount concern for me.

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

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by ArctionPasi » Mon Apr 20, 2015 12:02 pm

No. Just an empty series. Don't put the marker track to data, set marker.HorizontalPosition = AtXValue, VerticalPosition = AtYValue, and set XValue and YValue to X,Y you solved.
LightningChart Support Team, PT

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

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by greggorob64 » Fri Jun 19, 2015 5:15 pm

I have a follow up question for this topic.

Is there any way for me to make the series marker show on top of my cursors?

Thanks!


Image

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

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by ArctionPasi » Sat Jun 20, 2015 2:16 am

greggorob64 wrote:I have a follow up question for this topic.

Is there any way for me to make the series marker show on top of my cursors?

Thanks!


Image
Yes, by setting lineSeriesCursor.Behind = true. But that also sets the cursor behind the line series.
LightningChart Support Team, PT

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

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by greggorob64 » Mon Jun 22, 2015 6:13 pm

Thats a tough compromise, i definitely would like it 'in between', but i guess the crosshairs bieng on top is the better of the two.

Thanks.

Hinnenkamp
Posts: 1
Joined: Sat Jul 22, 2017 10:59 am

Re: ViewXY SampleSeriesMarker: BringToFront?

Post by Hinnenkamp » Fri Jul 28, 2017 9:05 am

greggeorob64 wrote:Thats a tough compromise, i definitely would like it 'in between', but i guess the crosshairs bieng on top is the better of the two.

Thanks.
Same here Greggor, Did you find a way to do it?