linecursor

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

linecursor

Post by fredd41 » Tue Sep 23, 2014 9:02 pm

hi

is it possible to set the linecursor height & top to fit in a specify segment ?
I want to play a segment (each segment is a wave file)

thanks

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

Re: linecursor

Post by ArctionPasi » Wed Sep 24, 2014 9:20 am

LineSeriesCursor covers the whole graph height, currently. There's no AssignYAxisIndex in the class, and therefore it can't be restricted to specific Y axis space.

Please use a Band instead.

Code: Select all

band.MouseResize = false;
band.AssignYAxisIndex = yourStackSegmentIndex; 
band.BorderWidth = 0; 
band.LimitYToStackSegment = true; 
band.Fill.Color = yourPreferredColor; 
band.Fill.GradientColor = yourPreferredColor; 
band.ResizeBorderWidth = 0; 
band.ValueBegin = yourXValue - (xAxis.Maximum - xAxis.Minimum)/100; 
band.ValueEnd = yourXValue + (xAxis.Maximum - xAxis.Minimum)/100; 
It's not a perfect approach but works more or less.
Cursors made with Bands. Both Y axes have an own band.
Cursors made with Bands. Both Y axes have an own band.
BandCursors2Segments.jpg (85.01 KiB) Viewed 6880 times
LightningChart Support Team, PT

fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

Re: linecursor

Post by fredd41 » Wed Sep 24, 2014 12:06 pm

ok thanks

Post Reply