开发者

Setting a Constant Size for a Pie Chart with External Labels

开发者 https://www.devze.com 2023-04-10 10:41 出处:网络
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 opti

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


I had the same issue today and found this answer:

<asp:Chart>
    <Series>
        <asp:Series CustomProperties="MinimumRelativePieSize=60"/>
    </Series>
</asp:chart>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号