series naming

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
CMG
Newbie
Newbie
Posts: 1
Joined: Wed Dec 17, 2003 5:00 am

series naming

Post by CMG » Fri Dec 19, 2003 4:52 pm

Can I change the default series name. e.g. change series1 to RtEyeVel

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

Post by Marjan » Sun Dec 21, 2003 9:23 am

Hi.

Yes, but only if you add series at design time (the Name property in the Oject Inspector). At runtime you could do something like this:

Code: Select all

var RtEyeVel: TLineSeries;
begin
  rtEyeVel = Series1;
  
  rtEyeVel.AddXY(...);
On the other hand, if you simply want to change series Title property (this shows up in legend), then you can use the following code:

Code: Select all

Series1.Title := 'RtEyeVel';
Marjan Slatinek,
http://www.steema.com

Post Reply