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

object.GetSubtitle( ) 

Arguments

object
Required. A Chart object.

Return Value

The GetSubtitle method returns a string value that contains the subtitle of a chart.

JScript Sample Code

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

chart.SetSeparators(";", true);
chart.SetDataFromQuery();

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

if( title == "" )
  chart.SetSubtitle("values in my unit");

chart.ExportAsResponse();

See Also

SetSubtitle Method | GetTitle Method | GetWidth Method | GetHeight Method | GetFrameRate Method

Applies To: Chart Object