c#中用chart控件做曲线图加横纵轴

2024-11-16 19:22:41
推荐回答(1个)
回答1:

this.chartDefault.ChartAreas[0].AxisX.Minimum =1; //坐标最小值
this.chartDefault.ChartAreas[0].AxisX.Maximum =4;//坐标最大值
this.chartDefault.ChartAreas[0].AxisX.Interval =2;//坐标大刻度间隔
this.chartDefault.ChartAreas[0].AxisX.MinorTickMark.Interval = 1;//小刻度间隔,就像厘米下的毫米一样