Custom Legend for Stacked Bar Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 61
Joined: Thu Sep 23, 2010 12:00 am

Custom Legend for Stacked Bar Chart

Post by lilo » Wed Jan 12, 2011 3:13 am

Hi,

I have a stacked bar chart with 3 series. The default Legend set to:

Bar1.Chart.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values

only displays the values for for the first series.

How do I display values for all 3 series?

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

Re: Custom Legend for Stacked Bar Chart

Post by Narcís » Wed Jan 12, 2011 9:04 am

Hi lilo,

You can achieve that adding an extra legend tool for each additional series you want to display. You can find an ExtraLegend tool example at All Features\Welcome !\Tools\Extra Legend in the features demo available at TeeChart's program group.
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

lilo
Newbie
Newbie
Posts: 61
Joined: Thu Sep 23, 2010 12:00 am

Re: Custom Legend for Stacked Bar Chart

Post by lilo » Wed Jan 12, 2011 9:18 am

Thanks, another question...is it possible to display only the label string in the legend, instead of value and label string?

Points1.Chart.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values

Displays both value and label string.

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

Re: Custom Legend for Stacked Bar Chart

Post by Narcís » Wed Jan 12, 2011 9:42 am

Hi lilo,

You can use the GetLegendText event for customizing this.
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