How to get user-defined labels for the depthaxis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Whookie
Newbie
Newbie
Posts: 28
Joined: Fri Sep 24, 2004 4:00 am

How to get user-defined labels for the depthaxis

Post by Whookie » Mon Jul 17, 2006 2:41 pm

Hi All!
I use a TChart and one TSurfaceSeries. I add 10 'waveforms' x:0 - 400 and y :0-255 to the surface. At the depthaxis I would have my own labels (eg.: 200@0, 210@1,..) but XLabels[] seems not to show up at the depthaxis and in the OnGetAxisLabel event i get no reference for which of my 10 waveforms I should supply a label (Series is always NIL, ValueIndex = -1).

So what have I missed??

BTW.: I would prefer to have an array like XLabels instead of using OnGetAxisLabel (because there will be many such surfaces in the near future).

TIA
Whookie

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 17, 2006 2:52 pm

Hi Whookie,

Have you tried using custom labels as shown in the All Features\Welcome!\Axes\Labels\Custom Labels example at the features demo, available at TeeChart's program group?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply