如何防止饼图标签重叠? [英] How to prevent Overlapping Pie Labels?

查看:265
本文介绍了如何防止饼图标签重叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是VS2008中的图表控件,即MSChart控件.任何人都可以就如何避免重叠我的馅饼标签提出任何建议吗?我不能使用外部"标签,因为它会使馅饼变得很小.
我尝试了如下所示的Smart Label属性.

I''m using the Chart Controls in VS2008 that is MSChart Control. Can anyone please help with any advice as to how to avoid overlapping my pie labels? I can''t use "Outside" labels because it makes the pie so tiny.
I have tried Smart Label properties as shown below.

Chart1.Series("Default").SmartLabelStyle.Enabled = True
Chart1.Series("Default").SmartLabelStyle.AllowOutsidePlotArea = LabelOutsidePlotAreaStyle.No

Chart1.Series("Default").SmartLabelStyle.CalloutLineAnchorCapStyle = LineAnchorCapStyle.None

Chart1.Series("Default").SmartLabelStyle.CalloutLineColor = Color.Red

Chart1.Series("Default").SmartLabelStyle.CalloutLineWidth = 1
Chart1.Series("Default").SmartLabelStyle.CalloutStyle = LabelCalloutStyle.None


似乎没有什么区别.....

请帮助我..


which doesn''t seem to make any difference.....

Please help me..

推荐答案

您好,我在msdn上找到了它,它似乎很适合您.请参考:
http://social.msdn.microsoft.com/Forums/ar/MSWinWebChart/thread/01b14116-a03f-4eca-aaf8-edead25f656d [
Hi, I find this on msdn, it seems quite close to your suitation. Please refer:
http://social.msdn.microsoft.com/Forums/ar/MSWinWebChart/thread/01b14116-a03f-4eca-aaf8-edead25f656d[^]


据我所知,防止这种情况的唯一解决方案是使用而是使用库洛尔编码图表键.
As far as i know the only solution to prevent this would be to use a coulor coded chart key instead.


这篇关于如何防止饼图标签重叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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