Page 1 of 1

Line graph with different values on left and right axes?

Posted: Wed Apr 06, 2011 8:33 am
by bobshackleton
How would I write a line command to have the first series' values on the left axis and the second series' values on the right axis? Thanks, Bob

Re: Line graph with different values on left and right axes?

Posted: Wed Apr 06, 2011 8:43 am
by EViews Gareth

Code: Select all

graph.setelem(2) axis(r)

Re: Line graph with different values on left and right axes?

Posted: Wed Apr 06, 2011 10:59 am
by bobshackleton
Sorry, I tried that and it doesn't seem to work with a line command. That is, the following code just gets me an error:

Code: Select all

line iprod lxnfa graph.setelem(2) axis(r)
Do I need to exxplicitly create a graph object to create a two-axis line graph?

Re: Line graph with different values on left and right axes?

Posted: Wed Apr 06, 2011 11:00 am
by EViews Gareth
via command, yes.

Re: Line graph with different values on left and right axes?

Posted: Wed Apr 06, 2011 12:01 pm
by bobshackleton
OK thanks