Fixed number of Labels on axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MangoldInt
Newbie
Newbie
Posts: 1
Joined: Fri Jul 17, 2009 12:00 am

Fixed number of Labels on axis

Post by MangoldInt » Thu Sep 17, 2009 1:50 pm

Hello,

I am using TeeChart 8.05.
What I am trying to do is the following: I have a teechart with some series in it. Now, on a timer event I am setting the minimum and maximum of the bottom axis to certain values, so that I can see a part of the chart animated from left to right.
No the problem is that sometimes additional labels appear and disappear on the bottom axis. It seems like Teechart is trying to put lables on the axis automatically as it finds that they are fitting in the available place. My question is: Can I prevent this and have a fixed number of labels, independent of the width of the axis?

Greetings,

Christian

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Fixed number of Labels on axis

Post by Narcís » Thu Sep 17, 2009 2:33 pm

Hi Christian,

Yes, I can think of two options to achieve that:

1. Manually setting axis minimum, maximum and increment properties as described in tutorial 4.
2. Use custom labels as shown in the All Features\Welcome!\Axes\Labels\Custom labels example in the new features demo.

Tutorials and new features demo can be found at TeeChart's program group.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply