BookmarkSubscribeRSS Feed
0 Likes

The ability to synchronize axis would be a great addition to the dual axis graphs. Having two different axis can be misleading and confusing. Right now it is possible to bypass unsynchronized axis by setting a fixed minumum and maximum. However, fixed axis is not considered ideal as new values can be higher or lower than the fixed values (e.g. when reporting on a new month). Therefore, a dynamic solution such as synchronizing axis would be ideal. 

5 Comments
ballardw
Super User

I think that you should provide an example of what you mean by "synchronized axis" in this instance. Minimum an example data set and the resulting picture. Possibly even should include which proc or graphing approach you are basing your suggestion on.

 

 

Style comment: If your resulting dual axis is "confusing" or "misleading" then the graph designer needs to consider something more than just the axis range / tick mark label in the presentation.

Quentin
Super User

When you say dual axis, you mean for example two y-axes, (one on the left, and one on the right)?  And you want a way to have them be identical?  I think typically a second y-axis is used when you want to plot against a different variable, so usually makes sense for the two axes to differ.  Agree, an example would help.

sashakar
SAS Employee
Status changed to: Suggestion Under Review
 
sashakar
SAS Employee

@wunderingsix Thanks for your feature request! Can you please provide more details on what you'd like a 'synchronize axis' option to do? Here's an example:

sashakar_0-1721661151675.png

Would you like the axes to be 'synchronized' in that the range of both axes would be from 0 to 6000 in this example? Would you expect the left axis to still be labeled 'Numeric 2' and the right axis to be labeled 'Numeric 1'? Would this new option be only available when the variables have the same data type, IE currency vs numeric? Thanks for the details!

Rick_SAS
SAS Super FREQ

For some examples of aligning the Y and Y2 axis, see "How to align the Y and Y2 axes in PROC SGPLOT."   The article discusses situations in which you want the tick marks on the Y axis to be aligned with the tick marks on the Y2 axis, even when Y and Y2 have different ranges and scales.