Page 1 of 1

Custom Legend for Stacked Bar Chart

Posted: Wed Jan 12, 2011 3:13 am
by 15057312
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?

Re: Custom Legend for Stacked Bar Chart

Posted: Wed Jan 12, 2011 9:04 am
by narcis
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.

Re: Custom Legend for Stacked Bar Chart

Posted: Wed Jan 12, 2011 9:18 am
by 15057312
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.

Re: Custom Legend for Stacked Bar Chart

Posted: Wed Jan 12, 2011 9:42 am
by narcis
Hi lilo,

You can use the GetLegendText event for customizing this.