Zoom Out after programmatically setting axis bounds
Posted: Fri Oct 03, 2014 3:11 pm
I have a line chart displaying data in the x-range of 0...360. Using the mouse I can zoom in and out on that data.
But then I programmatically set the x-axis as follows:
mChart.Axes.Bottom.Automatic = false;
mChart.Axes.Bottom.Minimum = 20;
mChart.Axes.Bottom.Maximum = 100;
After that the chart displays the x-axis as expected.
But then my problem: I can now not zoom out using the mouse anymore. The chart remains "stuck" on the range of 20...100 instead of letting me zoom out again to 0..360.
Question: How can I programmatically "zoom in" (set x-axes bounds) and still be able to zoom out again using the mouse?
But then I programmatically set the x-axis as follows:
mChart.Axes.Bottom.Automatic = false;
mChart.Axes.Bottom.Minimum = 20;
mChart.Axes.Bottom.Maximum = 100;
After that the chart displays the x-axis as expected.
But then my problem: I can now not zoom out using the mouse anymore. The chart remains "stuck" on the range of 20...100 instead of letting me zoom out again to 0..360.
Question: How can I programmatically "zoom in" (set x-axes bounds) and still be able to zoom out again using the mouse?