I have a chart with some BarSeries that are displayed with MultiBar:=mbSelfStack.
Is it possible to display the Series-name under each BarSeries-Stack?
I ckecked BottomAxis.LabelStyle, but there is no option for the seriesname.
I also used GetAxisLabel, but it is only called for each SeriesValue.
If I have 5 Bars and each Bar has only 3 Values GetAxisLabel is called only 3 times and I can place the seriesname only under 3 Bars.
Also if the series-count is larger than the value-count of the bars they are overlapped. It can be corrected with BarWidthPercent, but can this calculated correct by default?
Andreas
BarSeries and mbSelfStack
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Andreas,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here and let us know the TeeChart version you are using?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here and let us know the TeeChart version you are using?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hello,
I have uploaded the file "Tee7SelfStack.zip" created with Delphi 7 and TeeChart 7.05.
The problem should be visible at design- and run-time, if the datavalue-count is smaller than the series-count.
The "Series"-Title should be visible on the axis, because I need to display other things in the legend.
Andreas
I have uploaded the file "Tee7SelfStack.zip" created with Delphi 7 and TeeChart 7.05.
The problem should be visible at design- and run-time, if the datavalue-count is smaller than the series-count.
The "Series"-Title should be visible on the axis, because I need to display other things in the legend.
Andreas
Hi Andreas,
I think that the best (and easy) way to accomplish would be by using the Custom Axis labels feature, simply use the following code at the end of the FormShow :
I think that the best (and easy) way to accomplish would be by using the Custom Axis labels feature, simply use the following code at the end of the FormShow :
Code: Select all
Chart1.axes.Bottom.items.Clear;
for i := 0 to Chart1.SeriesCount-1 do
with Chart1.Axes.Bottom do
Items.Add(i,'Series' + inttostr(i));
Yes, it's a known problem, for the moment there's not an automatic way to fix it, it must be done as you said by using the BarWidthPercent.Also if the series-count is larger than the value-count of the bars they are overlapped. It can be corrected with BarWidthPercent, but can this calculated correct by default?
Pep Jorge
http://support.steema.com
http://support.steema.com