Retrieves the title of a chart (displayed on top of a chart).

string object->GetTitle( ) 

Arguments

object
Required. A Chart object.

Return Value

The GetTitle method returns a string value that contains the title of a chart.

PHP Sample Code

The following PHP code illustrates use of the GetTitle method.

$chart->SetDataFromQuery();

// We want a title for our chart (add one if it is not yet available) 
$title= $chart->GetTitle();

if( $title == "" )
  $chart->SetTitle("My Chart");

$chart->ExportAsResponse();

See Also

SetTitle Method | GetSubtitle Method | GetWidth Method | GetHeight Method | GetFrameRate Method

Applies To: Chart Object