setrange bug

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

setrange bug

Post by fredd41 » Fri Sep 12, 2014 2:35 pm

hi

I have 2 sampledataseries and 2 Y-Axis. The second series is not assigned (voluntary).

Y1
Y2
s1.AssignYAxisIndex = 0
s2.AssignYAxisIndex = -1


if I call setRange on the first Y-Axis Y1, s2.AssignYAxisIndex will be set to 0 :

For Each series As SampleDataSeries In .ViewXY.SampleDataSeries
If series.AssignYAxisIndex >= 0 Then
series.GetMinMaxFromXRange(t1, t2, newMin, newMax, False)
.ViewXY.YAxes(series.AssignYAxisIndex).SetRange(t1 , t2) ' after this line s2.assignYAxisindex =0
end if
next

thanks

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

Re: setrange bug

Post by ArctionPasi » Tue Sep 16, 2014 4:37 pm

There seems to be flaw in the software, it shouldn't set AssignYAxisIndex, but it does. We'll fix it to the next maintenance update.

Apologies for the trouble :?
LightningChart Support Team, PT

Post Reply