Strange legend issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Phil Moseley & Assocs
Newbie
Newbie
Posts: 16
Joined: Fri Jul 27, 2007 12:00 am

Strange legend issue

Post by Phil Moseley & Assocs » Wed Oct 31, 2007 7:46 pm

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):
Image

Example 2 (this is the incorrect behavior):
Image

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]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Nov 02, 2007 9:07 am

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:

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply