Dundas Chart for ASP.NET
BackColor Property
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Chart Class : BackColor Property


Gets or sets the background color of the Chart object.


Back ground color for the Chart

Syntax

Visual Basic (Declaration)  
Public Overrides Property BackColor As Color
Visual Basic (Usage) Copy Code
Dim instance As Chart
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
C#  
public override Color BackColor {get; set;}

Return Value

A Color structure. The default is Color.White.

Remarks

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 Color.Transparent value cannot be used.

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

If you set this color to "transparent" (e.g. use an Alpha value of 0) then no color will be assigned to the element's background and 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  

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.