How do I set the chart X axis labels ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
PhilG
Newbie
Newbie
Posts: 3
Joined: Mon Jan 12, 2004 5:00 am

How do I set the chart X axis labels ?

Post by PhilG » Thu Jan 22, 2004 11:18 am

I have s DBChart that has 6 series (all barcharts with 3 bars in each), and each series comes from fields from a single-record. The problem is that the chart displays the labels under theX axis as the field names from the 1st series on the graph and I want to override this to have the graph show Year1, Year2 & Year3.
The only way I've found to do this so far is to have the SQL query return the first series of data as those field names, which is fine until series 1 is switched off (with the checkboxes by the user) and the X labels become the field names for series 2.

I hope that makes sense, any ideas ?
Thanks,
Phil.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jan 22, 2004 11:42 am

Hi Phil,

this is a known limitation in TeeChart. If you specify series labels
(XLabels) then only first series labels will be shown. Workaround is to add
another "fake" series at position 0 in SeriesList and then use it only for
populating/displaying all series labels. In effect, the "fake" series will
store and display all x labels and other series will display only point
values (bars).
OR if you're using TeeChart v6, you could also define custom x labels (you can see one example in the Features Demo project ) and
ignore XLabels all together.

PhilG
Newbie
Newbie
Posts: 3
Joined: Mon Jan 12, 2004 5:00 am

Post by PhilG » Thu Jan 22, 2004 12:12 pm

Hi,

I don't seem to have those sources, where can I download them from ?

Cheers,
Phil.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jan 23, 2004 8:29 am

Hi Phil,

the Demo Features project is included in the TeeChart Pro v6 installation (using the installer without "source code" available on our web site).

Post Reply