Adding a new Vertical Axis to a zoomed in plot
Posted: Tue May 01, 2007 5:21 pm
Start with a plot with just 1 series added to the LEFT vertical axis.
Zoom in on some part of that chart.
Now add a series on the RIGHT vertical axis.
The newly visible RIGHT vertical axis shows data labels of all 0s and no data is displayed.
You can switch the order that you add the series (Right first and then Left) and you will see the same thing happen on the 2nd axis added every time.
It seems that when the chart is zoomed in, even though the 2nd axis is not visible, the min/max for the axis appears to be getting set.
Is it possible to disable the zooming of the non-visible axis?
I can handle this fine for my custom vertical axes since I have to handle zooming on custom axes anyway. I simply only apply the .SetMinMax() method call when the custom axis in question is visible.
However, for the Left and Right vertical axes it seems to be done automatically.
Thanks.
Aaron
Zoom in on some part of that chart.
Now add a series on the RIGHT vertical axis.
The newly visible RIGHT vertical axis shows data labels of all 0s and no data is displayed.
You can switch the order that you add the series (Right first and then Left) and you will see the same thing happen on the 2nd axis added every time.
It seems that when the chart is zoomed in, even though the 2nd axis is not visible, the min/max for the axis appears to be getting set.
Is it possible to disable the zooming of the non-visible axis?
I can handle this fine for my custom vertical axes since I have to handle zooming on custom axes anyway. I simply only apply the .SetMinMax() method call when the custom axis in question is visible.
However, for the Left and Right vertical axes it seems to be done automatically.
Thanks.
Aaron