• 586K Members
• 6,598 Online
• 709K Conversations

Highlighted
New Contributor

# Set were Y-axis crosses X-axis

Hello,

I'm using a secondary Y-axis with a different scale than the primary. In the diagram there are both negative and positive values plotted. The result is that the X-axis crosses the secondary Y-axis at a value other the zero. This makes the diagram a bit difficult to read. Is there a way to force the X-axis to always cross both the primary and secondary Y-axis at zero? (meaning that zero are at the same level/height in the diagram for both scales)

Thanks!

3 Replies
Highlighted

# Re: Set were Y-axis crosses X-axis

But, isn't the purpose of having two axis to be able to show data series of different magnitudes in the same graphing area? If you really want to have -zero- at the same height on both axis you should have the relationship of both axis (minimun - zero - maximum)  and the number of gaps between grid lines exactly the same. In your case, the primary axis goes from -600 to 300 in 9 steps. Your secondary axis goes from -200 to 1000 in 6 steps. I guess that when you set the maximum on your primary axis to 3000, and the gap width (=majorn unit) to 600, that your horizontal axis will be at the same level on both verticals. But then you might not like what you get either. Having both series on the same axis would be preferable, I believe.

Highlighted

# Re: Set were Y-axis crosses X-axis

I've seen somewhere macro to align axis, didn't google for it now. Otherwise that's only reformat axis manually, but to do that each time when source data changes.

Highlighted

# Re: Set were Y-axis crosses X-axis

I'm using the same typ of diagram for several different cases and all other diagram starts with zero (no negative values), so this is the only one with this issue. And normally the magnitudes differs more the ten times. I also like have the same structure for all diagrams. But as you pointed out the magnitud for all series can, in this case, be presented in the same scale. So in order to keep the same structure I have now set the primary and secondary scale to the same max/min that envelope all series. This looks way better!

Really a obvious solution but I couldn't see the forest for all the trees.

Thanks.

Related Conversations
X+1 +1 +1... till match a condition
Deleted in Excel on
7 Replies