Custom axes

TeeChart for ActiveX, COM and ASP
Post Reply
Hermes
Newbie
Newbie
Posts: 54
Joined: Tue Feb 04, 2003 5:00 am
Location: Montevideo, Uruguay

Custom axes

Post by Hermes » Thu Dec 27, 2007 7:38 pm

Hi, is there any way to know if a custom axis is vertical or horizontal from .Axis.Custom(lIndex) ?

thank you

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Dec 28, 2007 9:00 am

Hi,

there's not a way to consult it directly, but you can check if a custom axis of specific Series is Horizontal or Vertical, using the following code :

index = TChart1.Series(0).VerticalAxisCustom
index = TChart1.Series(0).HorizontalAxisCustom

This will return the index of the CustomAxis allowing you to reference to it by using TChart1.Axis.Custom(index)... If value returned is -1 means the specified Series does not have CustomHoriz or CustomVert axis assigned to it.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Dec 28, 2007 9:02 am

Hi,

just forgot to let you know. I've added this on our wish list to be considered for further releases. (Add a Horizontal) property to be able to consult it directly using isHoriz = TChart1.Axis.Custom(x).Horizontal.

Post Reply