I have a series of square XY Scatter Charts which all range from +Value to -Value with 0 in the centre in both axis. (I have attached a picture of one of these charts to better illustrate what I mean).
I need to be able to zoom in on all of these charts at once using a slider bar placed elsewhere on the form. I can easily tie the zoom level of the chart to the slider bar by using:
chart.Zoom = new Size(zoomSlider.Value, zoomSlider.Value);
which zooms into both axis at the same rate. However by default this seems to zoom in to left most point on the X axis and the top most point on the Y. The behaviour I need is to zoom into the centre of each chart so that point 0, 0 is always at the centre (The two charts in the picture illustrate this. The Zoom/Pan bars are only there to illustrate what I mean and will not be there in the final product).
I'm fairly certain that I need to use PanOffset to achieve this but I am unsure how to calculate the point to pass to it.
Any help would be appreciated.
Thanks,
Andy.
I need to be able to zoom in on all of these charts at once using a slider bar placed elsewhere on the form. I can easily tie the zoom level of the chart to the slider bar by using:
chart.Zoom = new Size(zoomSlider.Value, zoomSlider.Value);
which zooms into both axis at the same rate. However by default this seems to zoom in to left most point on the X axis and the top most point on the Y. The behaviour I need is to zoom into the centre of each chart so that point 0, 0 is always at the centre (The two charts in the picture illustrate this. The Zoom/Pan bars are only there to illustrate what I mean and will not be there in the final product).
I'm fairly certain that I need to use PanOffset to achieve this but I am unsure how to calculate the point to pass to it.
Any help would be appreciated.
Thanks,
Andy.