Show All Labels option for left axis

TeeChart for ActiveX, COM and ASP
Post Reply
chips
Newbie
Newbie
Posts: 1
Joined: Mon Oct 13, 2008 12:00 am
Contact:

Show All Labels option for left axis

Post by chips » Mon Dec 21, 2009 2:36 pm

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

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Show All Labels option for left axis

Post by Yeray » Mon Dec 21, 2009 3:55 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply