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.
How do I set the chart X axis labels ?
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com
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).
the Demo Features project is included in the TeeChart Pro v6 installation (using the installer without "source code" available on our web site).
Pep Jorge
http://support.steema.com
http://support.steema.com