Change the legend string

TeeChart for ActiveX, COM and ASP
Post Reply
Ninj
Newbie
Newbie
Posts: 17
Joined: Wed Jun 16, 2004 4:00 am
Location: Singapore

Change the legend string

Post by Ninj » Thu Jul 15, 2004 2:24 am

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 15, 2004 6:07 am

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.

Post Reply