Multi series legend problem

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Multi series legend problem

Post by David » Tue Nov 21, 2006 8:59 am

Hi,

I would like to display more than 3 series in a chart and the legend is displayed as each series's name. I used function SetActive to enable or disable some series display, but when there is only one series is displayed, the legend displays the data of the seires instead of its name. How can I avoid this and still display the name of the series when only one out of multi series is displayed?

Thanks.
David

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 21, 2006 10:09 am

Hi David,

You can achieve this using:

Code: Select all

    TChart1.Legend.LegendStyle = lsSeries
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Tue Nov 21, 2006 10:16 am

Thanks!

Post Reply