繁体   English   中英

如何将y轴的起始值设置为80并将其增加到1或0.5范围

[英]How do I set the starting value of the y axis to 80 and increment it my 1 or 0.5 range

我尝试使用下面的代码

//set interval of y axis to 0.5

chart1.ChartAreas["ChartArea1"].AxisY.LabelStyle.Interval = 0.5;

//how do i set the starting value to be 80....and the max value to be 90

这也可以从属性窗口直接完成 - > ChartAreas-> Axes-> Y(Value)Axis-> Minimum / Maximum

chart1.ChartAreas["ChartArea1"].AxisY.Maximum = 90;
chart1.ChartAreas["ChartArea1"].AxisY.Minimum = 80;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM