Export (0) Print
Expand All

Chart.BackColor Property

Gets or sets the background color of the Chart object.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[TypeConverterAttribute(typeof(ColorConverter))]
public override Color BackColor { get; set; }
<asp:Chart BackColor="Color" />

Property Value

Type: System.Drawing.Color
A Color value that represents the background color of the chart object. The default color is [System.Drawing.Color.White].

You can set this property to any valid ARGB (alpha, red, green, blue) value. Note that for the Chart object, the alpha component cannot be set to a value other than 255. This also means that, for the Chart object only, a Transparent value cannot be used.

The BackColor value will be the first color used if you are using gradient colors for the background.

The alpha value controls the opacity of a color. If you set this color to "transparent"—that is, if you use an alpha value of 0—no color will be assigned to the background of the title. As a result, the background will be transparent.

The following table represents the Series types that support gradients:

Series Types

2D

3D

Bar

X

-

Box Plot

X

X

Bubble

-

-

Candle Stick

X

X

Column

X

X

Doughnut

X

-

Error Bar

-

-

Fast Line

-

-

Fast Point

-

-

Funnel

X

X

Gantt

X

-

Kagi

-

-

Line

-

-

Pie

X

-

Point

-

-

Point and Figure

X

-

Polar

-

-

Pyramid

X

X

Radar

X

X

Range Column

X

-

Renko

X

-

Spline

-

-

Spline Area Area

X

-

Spline Range

X

-

Stacked Area

X

-

Stacked Area 100

X

-

Stacked Bar

X

-

Stacked Bar 100

X

-

Stacked Column

X

-

Stacked Column 100

X

-

Step Line

-

-

Stock  

-

-

Three Line Break

X

-

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft