Page 1 of 1

How do I set the chart X axis labels ?

Posted: Thu Jan 22, 2004 11:18 am
by 8578456
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.

Posted: Thu Jan 22, 2004 11:42 am
by Pep
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.

Posted: Thu Jan 22, 2004 12:12 pm
by 8578456
Hi,

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

Cheers,
Phil.

Posted: Fri Jan 23, 2004 8:29 am
by Pep
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).