[ANSWERED] scline with multiple axes

TeeChart for ActiveX, COM and ASP
Post Reply
jika
Newbie
Newbie
Posts: 27
Joined: Mon Mar 18, 2013 12:00 am

[ANSWERED] scline with multiple axes

Post by jika » Tue Mar 26, 2013 5:31 am

hello
my question about scline with multiple axes is as follows:
I display a scline
the Y axis is scaled from 0 to 200 in increments of 20.
but I have scline between 0 and 1. the chart was not significant.

so, in my chart I want to do two Y axes,
the first graduated of 0-1 with increment of 0.1
The second graduated from 0 to 200 with increment of 20
when I display multiple axes, the scale is no longer displayed on the Y axis

here is the example

'Create a Custom Vertical Axis
numVertaxis1 TChart1 >> = >> Axis AddCustom (False)
TChart1 >> Axis >> Custom (numVertaxis1) = 0 >> StartPosition
TChart1 >> Axis >> Custom (numVertaxis1) >> = 60 EndPosition

numVertaxis2 TChart1 >> = >> Axis AddCustom (False)
TChart1 >> Axis >> Custom (numVertaxis2) >> = 65 StartPosition
TChart1 >> Axis >> Custom (numVertaxis2) = 100 >> EndPosition

TChart1 >> Axis >> Custom (numVertaxis2) >> Visible = True
TChart1 >> Axis >> Custom (numVertaxis2) = False >> Automatic
TChart1 >> Axis >> Custom (numVertaxis2) >> Minimum = 0
TChart1 >> Axis >> Custom (numVertaxis2) >> Maximum = 1
TChart1 >> Axis >> Custom (numVertaxis2) >> Increment = 0.1

TChart1 >> Axis >> Custom (numVertaxis1) >> Visible = True
TChart1 >> Axis >> Custom (numVertaxis1) = False >> Automatic
TChart1 >> Axis >> Custom (numVertaxis1) >> Minimum = 0
TChart1 >> Axis >> Custom (numVertaxis1) >> Maximum = 200
TChart1 >> Axis >> Custom (numVertaxis1) >> Increment = 20

'Associate Series (1)
NSERIE = 0
FOR i = 1 _A_ gpnNbAppareils
IF gpnCodeMatos <> 0 THEN
IF gpsUnite = "l / h" THEN
'Setup Series (nserie) with Left Axis 2
TChart1 >> Series (nserie) >> = VerticalAxisCustom numVertaxis2
IF
'Setup Series (nserie) with Left Axis 1
TChart1 >> Series (nserie) >> = VerticalAxisCustom numVertaxis1
END
nSerie + +
END
END
Attachments
AXE MULTIPLE 2.PNG
AXE MULTIPLE 2.PNG (37.3 KiB) Viewed 5737 times
Last edited by jika on Tue Apr 09, 2013 8:22 am, edited 1 time in total.

jika
Newbie
Newbie
Posts: 27
Joined: Mon Mar 18, 2013 12:00 am

Re: scline with multiple axes

Post by jika » Tue Mar 26, 2013 7:30 am

I found the answer to my question

Post Reply