Page 1 of 1

Strange legend issue

Posted: Wed Oct 31, 2007 7:46 pm
by 14046227
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]

Posted: Fri Nov 02, 2007 9:07 am
by narcis
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;