为带有外部标签的饼图设置恒定大小
全部,
希望标题能说明一切。我们正在从 System.Web.Helpers 切换到 System.Web.UI.DataVisualization 图表控件,因为前者没有足够的选项。使用从Simon Steele“借用”的一些代码(谢谢!),我已经在表单上显示了基本图表,并更改了代码以将自定义属性 PieLabelStyle 添加到 Outside。
但是,存在一个副作用:具有一对 XY 对的饼图比具有多个 XY 对的饼图更大,因为图表会根据图像的固定外部宽度调整饼图大小。因此,两侧的标签会迫使饼变小,这在页面上看起来很糟糕。
命名空间中的数百个属性中可能有一个属性。有人以前这样做过并解决了这个问题吗?
谢谢吉姆
·斯坦利 黑板连接
All,
Hopefully the title should say it all. We're switching from the System.Web.Helpers to the System.Web.UI.DataVisualization charting controls because there's simply not enough options available in the former. Using some code "borrowed" from Simon Steele (thanks!), I've gotten the basic charts showing on my form, and altered the code to add the custom property PieLabelStyle to Outside.
But, there's a side effect: the pies with one XY pair are larger than those with multiple XY pairs because the chart adjusts the pie size based on the fixed external width of the image. Labels on both sides thus force a smaller pie, which looks awful on the page.
There's probably a property among the hundreds in the namespace. Anyone done this before and solved the problem?
Thanks
Jim Stanley
Blackboard Connect
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我今天遇到了同样的问题并找到了答案:
I had the same issue today and found this answer: