图表控制。如何删除图例标签 [英] Chart Control. How to remove legend labels

查看:701
本文介绍了图表控制。如何删除图例标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这个网站一个简单的code:

I got a simple code from this site:

<一个href=\"http://www.davidhayden.com/blog/dave/archive/2008/12/02/PieChartASPNETWebsitesUsingNewMicrosoftChartControls.aspx\" rel=\"nofollow\">http://www.davidhayden.com/blog/dave/archive/2008/12/02/PieChartASPNETWebsitesUsingNewMicrosoftChartControls.aspx

现在,我想删除饼图,即一中的所有标签,B,C,D。

Now, I want to remove all the labels in the pie chart i.e. "a", "b","c","d".

我试着这样做:

Chart1.Series[0].IsValueShownAsLabel = false;

但它不work..please帮助。我被困

But it doesnt work..please help. I am Stuck

推荐答案

您需要设置 PieLabelStyle 像这样

Chart1.Series[0]["PieLabelStyle"] = "Disabled";

读到这里

这篇关于图表控制。如何删除图例标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆