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


Gets or sets the width of the entire chart image.


Chart width

Syntax

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

Return Value

A value that represents the width of the entire chart image, in pixels.

Example

We enable browser sizing of a chart image.

C# Copy Code
// Enable browser sizing of a chart image.
Chart1.Attributes["Height"] = "70%";
Chart1.Attributes
["Width"] = "70%";

Remarks

The width of the entire chart image, in pixels.

The width of the chart image can also be sized within the browser as a percentage of the client area of the browser. Use of scaling may distort the resulting chart image and it is not the recommended means of scaling a chart image.

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.