Y axis label

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
itz_me_cheyi
Posts: 12
Joined: Wed Oct 02, 2013 6:26 am

Y axis label

Post by itz_me_cheyi » Wed Apr 23, 2014 9:36 am

Hi there,

I have problem with Y axis label. I have set some properties of Y axis as below:
axisY.AutoDivSpacing = false;
axisY.MajorDivCount = 15;
axisY.KeepDivCountOnRangeChange = true;
axisY.MajorDiv = 10;

then the chart display the Y axis with range value between 0-150 (please refer to Image1).
Image1.jpg
Image1.jpg (140.68 KiB) Viewed 7588 times
When i zooming the chart in by mouse wheel, the distance between the major grid is changed, not 10 as set before. (please refer to Image2).
Image2.jpg
Image2.jpg (131.63 KiB) Viewed 7588 times
This problem is not happened if I enable AutoDivSpacing (please refer to Image3).
Image3.jpg
Image3.jpg (141.32 KiB) Viewed 7588 times
Is there any ways to disable AutoDivSpacing but make the chart display the round numbers like 10.00, 20.00, 35.00 when zooming in as the behavior when AutoDivSpacing is disabled?

Thank you.

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

Re: Y axis label

Post by ArctionPasi » Wed Apr 23, 2014 7:40 pm

Hello, hello.

If KeepDivCountOnRangeChange is enabled, the MajorDiv value gets updated when zooming (changing axis range), because the count of divs remain same.

By setting it to False, MajorDiv remains same but MajorDivCount changes.

So set MajorDiv = 10, KeepDivCountOnRangeChange = false, AutoDivSpacing = false. That should do the trick.
LightningChart Support Team, PT

itz_me_cheyi
Posts: 12
Joined: Wed Oct 02, 2013 6:26 am

Re: Y axis label

Post by itz_me_cheyi » Fri May 02, 2014 5:57 am

Hello..

Thank you for your reply. It's working..!!

Post Reply