Retrieve the value of a label

TeeChart for ActiveX, COM and ASP
Post Reply
Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Retrieve the value of a label

Post by Rousseau » Mon Aug 17, 2009 6:51 pm

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Retrieve the value of a label

Post by Yeray » Tue Aug 18, 2009 7:15 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Re: Retrieve the value of a label

Post by Rousseau » Tue Aug 18, 2009 12:30 pm

Thanks!

Post Reply