如何使饼图的值显示为false?

问题描述:



我有一个使用饼图和条形图等图表的应用程序.
我可以使用以下方法使条形图的值显示为false:

Hi,

I''ve an application using charts like pie and bargraphs..

I''m able to make the values of bargraph visible false using:

str= ds1.Tables[0].Columns[i].ToString();
Chart1.Series[str].IsValueShownAsLabel = false;


但这不适用于饼图.这些值显示在饼图上.

现在,我想使这些值对于饼形图显示为false ...在我的公司中没有google访问权限.. :(

我可以知道做这项工作的财产吗?.

提前谢谢..

问候,
Ravi kamesh ..


But the same is not applicable to Pie chart..The values are shown on the Pie charts.

Now I wanna make those values visible false for a Pie Chart...No google access in my company.. :(

May I know the property which does that job..?

Thanks in advance..

Regards,
Ravi kamesh..

试试这个
Chart1.Series[str]["PieLabelStyle"] = "Disabled";


对于多个系列,必须获取点,然后将相同的值应用于for或foreach循环中的点值.


For multiple series you have to get the point and then apply the same for points values in for or foreach loop.