TChartGrid X , Y Label

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Herman
Newbie
Newbie
Posts: 56
Joined: Tue Dec 07, 2004 5:00 am

TChartGrid X , Y Label

Post by Herman » Thu May 12, 2005 3:18 am

Is it possible to change the label display in chart grid?
The default is X and Y, i want to change it into like this:
Series1 : X (second), Y (Voltage)
Series1 : X (second), Y (Gs)

Thank you

Herman

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

Post by Marjan » Thu May 12, 2005 7:10 am

Hi.

Yes, several ways to do it. The easiest is to change series XValues, YValues names:

Code: Select all

Series1.XValues.Name := 'X(s)';
Series1.YValues.Name := 'Y(Gs)';
ChartGrid1.Series := Series1;
Alternatively, you can also use TChartGrid events to customize individual cell text and apperance. But using the above approach is much faster and simpler.
Marjan Slatinek,
http://www.steema.com

Post Reply