Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Specifies the width in pixels of the chart.

Visual Basic
Public Property Width As Integer
C#
public int Width { get; set; }

Property Value

An integer value that specifies the width in pixels of the chart.

Remarks

The Width property specifies the width in pixels of the movie or image generated from a chart object.

Loading a chart style with the LoadStyle method sets the width to the value stored in the style file.

Sample Code

The following code illustrates use of the Width property.

Visual Basic
chart.SetDataFromTxtFile("C:\\myData.txt")
chart.LoadStyle("C:\\myStyle.scs")

' Retrieve movie Width and Height set by the call of LoadStyle method 
Dim w As Integer = chart.Width
Dim h As Integer = chart.Height 

' Now scale the movie by 2 
chart.Width = 2 * w
chart.Height = 2 * h
C#
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Retrieve movie Width and Height set by the call of LoadStyle method 
int w= chart.Width;
int h= chart.Height; 

// Now scale the movie by 2 
chart.Width= 2 * w;
chart.Height= 2 * h;

See Also

Height Property | Title Property | Subtitle Property | FrameRate Property

Applies To: Chart Object