Limiting the amount of Axis Tricks

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Andres
Posts: 8
Joined: Mon May 22, 2017 9:40 pm

Limiting the amount of Axis Tricks

Post by Andres » Mon May 22, 2017 9:51 pm

Hi there,

I am looking to limit the amount of Axis tricks on my Y Axis.

I've manually set the Range using the SetRange method.

Code: Select all

yAxis.SetRange(-100, 100);
But LightingChart automatically creates up to 20 tricks. I want to have 8.
Is there a way to set the Max Count of rows that you want to have for that specific YAxis ?


Thanks in advance,
Andrés
Attachments
Axis.png
Axis.png (41.44 KiB) Viewed 10198 times

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

Re: Limiting the amount of Axis Tricks

Post by ArctionPasi » Tue May 23, 2017 9:03 am

Hi Andres,

set yAxis.AutoDivSpacing = false, yAxis.MajorDiv and MajorDivCount.

For details, please see User's manual part 6.2.6, "Divisions".
LightningChart Support Team, PT

Andres
Posts: 8
Joined: Mon May 22, 2017 9:40 pm

Re: Limiting the amount of Axis Tricks

Post by Andres » Tue May 23, 2017 12:19 pm

that did the trick, Thanks!

Post Reply