如何在MS Chart的Axe Y中去掉小数点刻度,
我希望值是1,2,3,..等
发布于 2012-01-20 21:52:55
它应该是这样的:
var chart = new Chart();
chart.ChartAreas.Add(new ChartArea());
chart.ChartAreas[0].AxisY.LabelStyle.Format = "0";
另外,请参阅以下内容:axis formatting
编辑:
穆斯塔法的评论是正确的。上行将重新显示y轴上格式为"0“的所有刻度线。为了以1为间隔显示刻度线,请按他说的做:
chart.ChartAreas[0].AxisY.LabelStyle.Interval = 1;
https://stackoverflow.com/questions/8942244
复制相似问题