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.

JSP Sample Code

The following JSP code illustrates use of the GetTitle method.

chart.SetDataFromTxtFile("C:\\myData.txt");

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

if( title.length() == 0 )
  chart.SetTitle("My Chart");

chart.ExportAsResponse();

See Also

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

Applies To: Chart Object