Hi,
I have a TChart (5.01) in which a variable amount of series can be placed.
I have a legend at the bottom, and have set the Legend.ResizeChart to true, and some margin (like 4%) to bottom.
Sometimes the legend is nicely spread out like;
--
Series 1 Series 2 Series 3
Series 4
--
But sometimes the legend refuses to do this, but it stacks the legend like;
--
Series 1
Series 2
Series 3
Series 4
---
Is there a property that prevents stacking it like this ? I have 7 series max, and would like to have them ordered 3 on a row max, or else the chart gets drastically resized.
Thanks in advance,
- Jorgen
TChart legend woes
Hi Jorgen,
you could try using :
Chart1.Legend.MaxNumRows := 3;
This will allow to show 3 Rows as maximum.
you could try using :
Chart1.Legend.MaxNumRows := 3;
This will allow to show 3 Rows as maximum.
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jorgen,
There's no way of doing it directly, la best way is creating a custom legend with the canvas using Annotation tool for example.
There's no way of doing it directly, la best way is creating a custom legend with the canvas using Annotation tool for example.
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 |
Ok Guys,
Here's the kicker! The problem was that I displayed one extra series in my legend which was containing a strange symbol (e.g. with a circle in it) all other line series that are normal series. Whenever I remove that one from the legend, the series display 3x? rows. Thanks a lot for all the help, it appeared some weird artefact in TChart.
- Jorgen
Here's the kicker! The problem was that I displayed one extra series in my legend which was containing a strange symbol (e.g. with a circle in it) all other line series that are normal series. Whenever I remove that one from the legend, the series display 3x? rows. Thanks a lot for all the help, it appeared some weird artefact in TChart.
- Jorgen