开发者

ASP.NET Chart Control Formatting

I need help trying to style the asp.net chart control. I have a doughnut chart that I need to style:

  • The background of the doughnut to be transparent so the underlying gradient shows through.
  • I'd like to move the legend to the bottom below the chart ... that way I can make a tall/thin chart

This is what it currently looks like开发者_运维百科. And I haven't found the right combinations of settings to make it happen. Thanks!

ASP.NET Chart Control Formatting

(source: codecube.net)


Try the following:

1 - Transparency

Chart.ChartAreas["ChartArea1"].BackColor = Color.Transparent;

2 - Legend

// Set legend docking
Chart.Legends["Default"].Docking = LegendDocking.Bottom;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜