Newbie question

TeeChart for ActiveX, COM and ASP
Post Reply
Richard
Newbie
Newbie
Posts: 40
Joined: Mon May 21, 2001 4:00 am

Newbie question

Post by Richard » Wed Dec 15, 2004 7:35 am

I am new to teechart and i have created a simple chart with two series.

The question is in the Legend place, it shows series0 and series while I hope I can modify this as I want. Which method or property I can use to achieve this?

Thank you all in advance.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Dec 15, 2004 8:55 am

Hi.

Try using series Title property (at design time or in code).
Marjan Slatinek,
http://www.steema.com

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

Post by Narcís » Wed Dec 15, 2004 8:56 am

Hi Richard,

You can change the series title using the editor or run-time using:

Code: Select all

TChart1.Series(0).Title = "Your Title"
The series index goes from 0 to number of series -1 in the order they are created.
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

Richard
Newbie
Newbie
Posts: 40
Joined: Mon May 21, 2001 4:00 am

Post by Richard » Wed Dec 15, 2004 9:44 am

Thank you both very much. I have done it. :D

Post Reply