Page 1 of 1

Axis SetRange problem

Posted: Wed Jun 21, 2017 9:04 am
by juergen
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

Re: Axis SetRange problem

Posted: Wed Jun 21, 2017 9:14 am
by ArctionKestutis
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.

Re: Axis SetRange problem

Posted: Thu Jun 22, 2017 12:41 pm
by juergen
Hi,

ScrollMode = XAxisScrollMode.None worked for me.

Thank you very much...