Page 1 of 1

TChartGrid X , Y Label

Posted: Thu May 12, 2005 3:18 am
by 9235196
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

Posted: Thu May 12, 2005 7:10 am
by Marjan
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.