I have a chart, I zoom in similar to how you can zoom in the example project at Welcome !\Miscellaneous\Zoom and Scroll\Direction where I can zoom both directions.
Once zoomed in I do something in my application where I
1. Save the Left & Bottom Axis min/max values
2. Remove the chart control from my dialog
3. Re-generate the chart
4. Then I want to apply the zoom settings I saved off in step 2
Notice I say zoom, because I want to be able to press the "Normal" button on the ChartController toolbar to restore the zoom back to what it was originally drawn to.
The problem I have been having is it seems the values I send to the the DoZoom method are not quite right. I send in something that looks like:
Code: Select all
Chart.DoZoom(_xZoom.Min, _xZoom.Max, _xZoom.Min, _xZoom.Max, _yZoom.Min, _yZoom.Max, _yZoom.Min, _yZoom.Max);
When I hit the Normal button on the Chart Controller I see the Left axis zoom out 2x what it should have. Not sure why. I assume it is because I am passing some incorrect arguments into the DoZoom method.