Maximum amount of major devotions on axisY

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Norrbotten68
Posts: 4
Joined: Mon Sep 12, 2022 5:25 pm

Maximum amount of major devotions on axisY

Post by Norrbotten68 » Sat Nov 26, 2022 8:11 am

Hi.
How can I limit the amount of major devotions on axis. Some time it is too much and I wold like to have max 10-15 of them. But I have to be sure to get readable values such as 0,5,1 ,...10 those are easy for user to understand not as 0.33 .
Thank you .

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

Re: Maximum amount of major devotions on axisY

Post by ArctionKestutis » Mon Nov 28, 2022 11:13 am

Axis Divisions control described in User Manual chapter 6.2.6 Divisions. In short, you would need to disable Axis.AutoDivSpacing property and set value between ticks in Axis.MajorDiv property.

A bit longer explanation:
If AutoDivSpacing is disabled, the division spacing can be controlled manually with MajorDiv and MajorDivCount -propertis. MajorDiv controls the spacing by magnitude, whereas MajorDivCount controls it by division count. KeepDivCountOnRangeChange property can be used to force maintaining the divisions count the same whenever the axis range is changed, regardless of MajorDiv setting.
Hope this helps.

Post Reply