How to disable Chart axis autosize

放肆的年华 提交于 2019-12-12 02:55:25

问题


I need to stop autosizing (or autoscaling) of Y Axis in c# chart and set it manually. Any advice? Thanks


回答1:


You can set the minimum and maximum of the Y axis like so:

chart.ChartAreas[0].AxisY.Minimum = 0;
chart.ChartAreas[0].AxisY.Maximum = 10;


来源:https://stackoverflow.com/questions/9412781/how-to-disable-chart-axis-autosize

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