Page 1 of 1

OnGetLegendText - which series

Posted: Fri Jun 29, 2007 7:11 am
by 9348284
Hi

In an attempt to put actual (newest) values in the legend, I use the OnGetLegendText handler.
This handler has an index parameter, but this is not an index to the series collection, since series can be invisible, or have their ShowInLegend false.
Is there a sure way to gain access to the series of the legend text in question?

Best

Søren

Posted: Mon Jul 02, 2007 11:30 am
by Pep
Hi Søren,

knowing the text in the legend (by using the OnGetLegendText event) you should be able to check which Series in the Chart have the same Series title.

if Text = Chart1.Series[x].Title thn
....;