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.

VBScript Sample Code

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

chart.SetDataFromQuery

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

If subtitle = "" Then
  chart.SetSubtitle "My Chart"
End If

chart.ExportAsResponse

See Also

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

Applies To: Chart Object