Problem in setting Position for bottom axis

TeeChart for ActiveX, COM and ASP
Post Reply
Dilish
Newbie
Newbie
Posts: 7
Joined: Wed Aug 03, 2005 4:00 am
Location: India
Contact:

Problem in setting Position for bottom axis

Post by Dilish » Wed Nov 30, 2005 11:44 am

Hi everybody,

I want to create two different series in a single Chart object. For that i am trying to use custom axis. I used the following code

Chart.AddSeries 14
a = Chart.Axis.AddCustom(false)
Chart.Axis.Left.EndPosition = 49
Chart.Axis.Bottom.Position = 49
Chart.Axis.Custom(0).StartPosition = 52
Chart.Axis.Custom(0).Otherside = True
Cno = Chart.SeriesCount-1
Chart.Series(Cno).VerticalAxisCustom = a
b = Chart.Axis.AddCustom(true)
Chart.Series(0).HorizontalAxisCustom = b

But it gives
"Wrong number of arguments or invalid property assignment: 'Axis.Bottom.Position' "
error.

Pls help me to solve

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

Post by Pep » Thu Dec 01, 2005 11:08 am

Hi,

how about using :
Chart.Axis.Bottom.PositionPercent = 49
instead of :
Chart.Axis.Bottom.Position = 49
?

You can also see some "Custom Axis" examples into the Demo Features project (included into the TeeChart Pro ActiveX installation) under :
All Features -> Welcome ! -> Axes -> ...

Post Reply