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).
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).
This problem is not happened if I enable AutoDivSpacing (please refer to Image3).
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.
Y axis label
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Y axis label
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.
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
-
- Posts: 12
- Joined: Wed Oct 02, 2013 6:26 am
Re: Y axis label
Hello..
Thank you for your reply. It's working..!!
Thank you for your reply. It's working..!!