CHART控件中,坐标轴想设置成最小值为0 最大值为100
还有散点图中点怎么修改大小
------解决方案--------------------------------------------------------
- C# code
...chtCurrent.PrePaint += new EventHandler<ChartPaintEventArgs>(chtCurrent_PrePaint);...void chtCurrent_PrePaint(object sender, ChartPaintEventArgs e) { Axis axis = chtCurrent.ChartAreas[0].AxisY; double max = axis.Maximum; double min = axis.Minimum; }
------解决方案--------------------------------------------------------
//X 轴坐标最大最小值
chartCWPBestMode.ChartAreas["ChartAreaCWP"].AxisX.Minimum = 0;
chartCWPBestMode.ChartAreas["ChartAreaCWP"].AxisX.Maximum = 100;
------解决方案--------------------------------------------------------