Page 1 of 1

Change the legend string

Posted: Thu Jul 15, 2004 2:24 am
by 9082888
Hi,

I have been trying to change the legend string through this code:

TChart1.Series(iCurrSeries).LegendString(iCurrSeries, 0) = strSeriesLabel

However, I always get this error:

Property let procedure not defined and property get procedure did not return an object.

How can I change the Legend string?

Thanks

Posted: Thu Jul 15, 2004 6:07 am
by Pep
Hi,

to change the legend text you must use the OnGetLegendText event. I think there's an example of this in the Demo Features project.