已解决! series--->标签--->smartlabelstyle-->calloutlinecolor设置为transparent 在你需要不显示数据标签的地方,将数据取出来进行判断,并且给他设置为白色或者其他的颜色 DataPointCollection p2= chart1.Series[1].Points; foreach(DataPoint dt in p2 ){ double[] s=dt.YValues; if(s[0]==0){ dt.LabelForeColor = Color.White; } }
网格间隔设置大些不就好了吗?
4,816
社区成员
14,134
社区内容
加载中
试试用AI创作助手写篇文章吧