DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling Multiple Y-Axes To Different Scales

I am trying to scale two Y-axes to separate scales. I am pulling the begin/end values from an array of data in a channel.

 

I can't figure out how to set the second Y-axis in my graph in the same fashion using different values from the channel.

 

Here is an example of how I am setting my Y-axis scaling:

 

dim graph

set graph = report.ActiveSheet.Objects("Graph Name")  

graph.YAxis.Scaling.AutoScalingType=0
graph.Yaxis.Scaling.Begin=chd(1,"[1]/Graph Settings")  
graph.Yaxis.Scaling.End=chd(2,"[1]/Graph Settings")
graph.Yaxis.Scaling.Tick.Distance=chd(3,"[1]/Graph Settings")
0 Kudos
Message 1 of 2
(1,962 Views)

Hello COMP.Engineer,

 

In this case you need to set the YAxisList array, like

 

graph.YAxisList(1).Scaling.Begin ...

 

Greetings

Walter

0 Kudos
Message 2 of 2
(1,942 Views)