在饼图隐藏标签(MS图表.NET) [英] Hide labels in pie charts (MS Chart for .Net)
本文介绍了在饼图隐藏标签(MS图表.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我似乎无法找到控制在饼图标签的可见性的属性。我需要关闭标签作为信息是传说中的使用。
任何人都知道我能在后面的代码?
使用什么属性
我试着设置了一系列的标签,没有 Chart1.Series [I] .Label =的String.Empty;
但似乎标签反正露面。
解决方案
Chart1.Series [I] [PieLabelStyle] =已禁用;
工程太,并且不需要为每个数据点进行设置。
I can't seem to find the property that controls visibility of labels in pie charts. I need to turn the labels off as the information is available in the legend.
Anyone know what property I can use in code behind?
I tried setting the series labels to nothing Chart1.Series[i].Label = string.Empty;
but the labels seem to show up anyway.
解决方案
Chart1.Series[i]["PieLabelStyle"] = "Disabled";
works too, and doesn't need to be set for each datapoint.
这篇关于在饼图隐藏标签(MS图表.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文