我有显示在365或更多值上的图形。图形非常简洁。
我想启动它的图形,使其可缩放三倍。
我可以给你的是用鼠标缩放,但是我想当你开始放大三倍的时候?
使用鼠标缩放之前和之后的图片。


发布于 2017-02-18 00:38:38
要在代码中设置缩放,可以使用以下属性:
// get a short reference to the x-axis
Axis ax = chart1.ChartAreas[0].AxisX;
// set the size of the zoomed view
ax.ScaleView.Size = 60;
// set the position of the view
ax.ScaleView.Position = 31;


请注意,“可缩放三倍”或“增加三倍”都不是明确的要求。您需要计算要显示的点或值的范围!
https://stackoverflow.com/questions/42276073
复制相似问题