Axis SetRange problem

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Axis SetRange problem

Post by juergen » Wed Jun 21, 2017 9:04 am

Hi,
I'm using the actual V7.2 controls.
There is a problem if SetRange for an xAxis is used if both parameters are negative.

Example:
chartAxisX.SetRange(-20, -18);

The axis will be set to "-20, 0". If I move the axis by mouse it works, just the SetRange command fails.

Best regards,
Jürgen

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

Re: Axis SetRange problem

Post by ArctionKestutis » Wed Jun 21, 2017 9:14 am

Hello Jürgen,

I am guessing that ScrollMode and ScrollPosition on x-axis are interfering.

Please set axisX.ScrollMode = XAxisScrollMode.None; before setting range.
Alternative, axisX.ScrollPosition should not be bigger than Xmax (default ScrollPosition=0).

All the best.

juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Re: Axis SetRange problem

Post by juergen » Thu Jun 22, 2017 12:41 pm

Hi,

ScrollMode = XAxisScrollMode.None worked for me.

Thank you very much...

Post Reply