Microsoft chart control zoom out and panning

岁酱吖の 提交于 2019-12-04 22:19:21

The zoom out is done one the axis scrollbar! Also there is nothing to stop you setting the zoom diagrammatically:

chart1.ChartAreas[0].AxisX.ScaleView.Zoom(-10, 110);
chart1.ChartAreas[0].AxisY.ScaleView.Zoom(-10, 20);

the values you enter there can be outside the min/max of the data.

I started to write a helper for MS Charts controls. It includes mouse based scrolling and a mousewheel zoom. It is very simple you can tweak it for your own needs very quickly. It does not use viewmin and viewmax and can zoom out as far as you wish.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!