Specifies the frame rate of the Flash movie generated from a chart object.
void object->SetFrameRate( int framerate )
The SetFrameRate method specifies the frame rate in frames per second of the final Flash movie generated from a chart object (see ExportAsResponse Method and ExportAsFile Method for generating a Flash movie). That is the number of frames displayed per second in the movie.
Loading chart graphical settings from a style file via the method LoadStyle sets the frame rate of the resulting Flash movie with the frame rate value stored in the settings file.
The following PHP code illustrates use of the SetFrameRate method.
$chart->SetSeparators(";", true); $chart->SetDataFromQuery(); $chart->LoadStyle("C:\\myStyle.scs"); // Retrieve movie frame rate set by the call of LoadStyle method $fps= $chart->GetFrameRate(); // We want a movie with a minimum frame rate of 12 frames per second if( $fps < 12 ) $chart->SetFrameRate(12); $chart->ExportAsResponse();
GetFrameRate Method | SetTitle Method | SetSubtitle Method | SetWidth Method | SetHeight Method
Applies To: Chart Object