private void SetAxisY()
{
Axis AxisY = new Axis()
{
LineColor = Color.FromArgb(64, 64, 64, 64),
// Y轴标签字体大小
LabelAutoFitMinFontSize = 10,
// Y轴标签显示样式
LabelStyle = new LabelStyle() { Format = "{#}.0%" },
// 网格Y轴设置
MajorGrid = new Grid() { LineColor = Color.FromArgb(64, 64, 64, 64) },
// Y轴的最大值
Maximum = 1000,
// Y轴的最小值
Minimum = 0,
// Y轴标签间距
Interval = 500,
// 最小刻度
MajorTickMark = new TickMark() { TickMarkStyle = TickMarkStyle.OutsideArea, Size = 500 },
};
System.Windows.Forms.DataVisualization.Charting.Chart c = new System.Windows.Forms.DataVisualization.Charting.Chart();
c.ChartAreas[0].AxisY = AxisY;
}