Page 1 of 1

Retrieve the value of a label

Posted: Mon Aug 17, 2009 6:51 pm
by 9532689
Hi

I have a TeeChart graphic and I want to recover the value of bottom labels.

I need to know what property I have to use to be able to do that.


Thanks

Re: Retrieve the value of a label

Posted: Tue Aug 18, 2009 7:15 am
by yeray
Hi Rousseau,

You could use the following (note that the list starts for the end, so the index 0 is the bigger label in an ascending XValues chart):

Code: Select all

TChart1.Axis.Bottom.Labels.Item(0).Text
Or you could also use OnGetAxisLabels event.

Re: Retrieve the value of a label

Posted: Tue Aug 18, 2009 12:30 pm
by 9532689
Thanks!