我尝试使用以下代码
//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
答案 0 :(得分:0)
这也可以直接从属性窗口完成 - > ChartAreas-> Axes-> Y(Value)Axis-> Minimum / Maximum
chart1.ChartAreas["ChartArea1"].AxisY.Maximum = 90;
chart1.ChartAreas["ChartArea1"].AxisY.Minimum = 80;