如何更改ASP.NET图表控件的背景颜色? [英] How do I change the background color of an ASP.NET chart control?

查看:251
本文介绍了如何更改ASP.NET图表控件的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

呈现图表控件时,图像的背景颜色为白色。如何让它变成另一种颜色(或透明)?

When the chart control is rendered, the background color of the image is white. How can I make it another color (or transparent)?

我所指的是黑色边框和图表背景之间的白色区域。

The area I am referring to is the white area between the black border and the chart background.

推荐答案

尝试:

<asp:Chart id="Chart1" runat="server">
  <BorderSkin BackColor="Transparent" PageColor="Transparent" 
    SkinStyle="Emboss" />
</asp:Chart>

BorderSkin.PageColor和BorderSkin.BackColor属性应该做的...

The BorderSkin.PageColor and BorderSkin.BackColor properties should do the trick...

这篇关于如何更改ASP.NET图表控件的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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