double y axis graph

31 views
Skip to first unread message

Christopher Spadi

unread,
Nov 14, 2019, 12:02:50 PM11/14/19
to Data Illustrator
Hi,
Is it possible to create a graph with 2 y-axis? And if so what are the steps to do so? Thanks





Image result for double y axis graphs

John Thompson

unread,
Nov 14, 2019, 1:30:59 PM11/14/19
to Data Illustrator
Hi Chris!

Yes you can create a graph with 2 y-axes. To achieve this, Data Illustrator requires you to create two lines, partition the two lines by data case, and bind the y-position of each of your lines to two different data attributes. The crucial part is to not re-use the same y-scale for the y-position data binding - you'll need to manually align / click+drag the y-axis to have the same output range (the same height).

I created a dual y-axis example for a stock dataset with the left axis showing "stock price" and the right axis representing "stock % daily change."

Screenshot 2019-11-14 at 1.30.06 PM.jpg


As I mentioned above, the key part is to create two different axes. When creating the second anchor point y-position binding make sure to use "Create a new scale":

Screenshot 2019-11-14 at 1.16.30 PM.jpg

Then you'll need to adjust the axes to have the same output range by click+dragging. (Hint click+drag on the background of an axis moves it perpendicular, click+drag on the green handle adjusts the output range):

Screenshot 2019-11-14 at 12.48.27 PM.jpg


Let me know if you have any questions or get stuck!


Thanks for using Data Illustrator!


- John Thompson

Christopher Spadi

unread,
Nov 14, 2019, 4:00:48 PM11/14/19
to Data Illustrator
Hi John,

How did you get the percent change (2nd y-axis) on the right side?
Reply all
Reply to author
Forward
0 new messages