日期:2014-05-20 浏览次数:20908 次
... 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;
------解决方案--------------------