Page 1 of 1

Show All Labels option for left axis

Posted: Mon Dec 21, 2009 2:36 pm
by 15050525
Hi, I'm trying to set the "Show all labels" option for the Left axis through the API... is this possible?

e.g. I have a form which allows users to customize the Increment setting for the Y-Axis. In the example below, the user sets the increment to .5.

Image

However, when the chart is generated, TChart determines whether there is enough room to display all the labels. If TChart decides to hide some incremental labels, the user is forced to manually configure the setting. We need to be able to check that box programmatically, so the extra step isn't necessary.

Thanks in advance,
-ChipS

Re: Show All Labels option for left axis

Posted: Mon Dec 21, 2009 3:55 pm
by yeray
Hi Chris,

This checkbox internally sets the labels separation to 0 (when unchecked) or to 10 (when checked). The same can be done, for example with the following:

Code: Select all

TChart1.Axis.Left.Labels.Separation = 0