Specifies the height in pixels of the chart.

void object->SetHeight( int height )

Arguments

object
Required. A Chart object.
height
Required. An integer value that specifies the height in pixels of the chart.

Remarks

The SetHeight method specifies the height in pixels of the movie or image generated from a chart object.

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

PHP Sample Code

The following PHP code illustrates use of the SetHeight method.

$chart->SetDataFromQuery();
$chart->LoadStyle("C:\\myStyle.scs");

// Retrieve movie Width and Height set by the call of LoadStyle method 
$w= $chart->GetWidth();
$h= $chart->GetHeight(); 

// Now scale the movie by 2 
$chart->SetWidth(2 * $w);
$chart->SetHeight(2 * $h);

$chart->ExportAsResponse();

See Also

GetHeight Method | SetTitle Method | SetSubtitle Method | SetWidth Method | SetFrameRate Method

Applies To: Chart Object