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

object.GetTitle( ) 

Arguments

object
Required. A Chart object.

Return Value

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

JScript Sample Code

The following JScript code illustrates use of the GetTitle method in an ASP page.

chart.SetSeparators(";", true);
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