In our product, you can open multiple plots and each plot will have it's series in the legend. Pretty standard stuff really. My issue is when I open one plot, the legend has all of the plots points listed, rather than the series themselves.
Example 1 (this is the correct behavior):
Example 2 (this is the incorrect behavior):
These two plots were created exactly the same way. The only difference is that plot 1 has multiple series and plot 2 has one. In both cases all series have the ShowInLegend property as true, and all the series have a title. Is there a setting on the legend I need to change to not do this?[/img]
Strange legend issue
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MattHolmes,
Yes, this is because when legend style is set to be automatic, when the chart has only one series the legend displays this series values. When there are multiple series the legend displays their titles.
Anyway, you can set this behaviour using this:
Yes, this is because when legend style is set to be automatic, when the chart has only one series the legend displays this series values. When there are multiple series the legend displays their titles.
Anyway, you can set this behaviour using this:
Code: Select all
tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;
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 |