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

Specifies the frame rate of the Flash movie generated from a chart object.

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

Property Value

An integer value that specifies the frame rate in frames per second of the Flash movie.

Remarks

The FrameRate property specifies the frame rate in frames per second of the final Flash movie generated from a chart object. That is the number of frames displayed per second in the movie.

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

Sample Code

The following code illustrates use of the FrameRate property.

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

' Retrieve movie frame rate set by the call of LoadStyle method 
Dim fps As Integer = chart.FrameRate

' We want a movie with a minimum frame rate of 24 frames per second 
If fps < 24 Then
  chart.FrameRate = 24
End If
C#
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Retrieve movie frame rate set by the call of LoadStyle method 
int fps= chart.FrameRate;

// We want a movie with a minimum frame rate of 24 frames per second 
if( fps < 24 )
  chart.FrameRate= 24;

See Also

Title Property | Subtitle Property | Width Property | Height Property

Applies To: Chart Object