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

object.SetSubtitle subtitle 

Arguments

object
Required. A Chart object.
subtitle
Required. A string that specifies the subtitle.

Remarks

By default, a new chart has no subtitle.

VBScript Sample Code

The following VBScript code illustrates use of the SetSubtitle method.

'Create the chart series
Dim values_1(2)
Dim values_2(2)

values_1(0) = 10
values_1(1) = 20
values_1(2) = 30

values_2(0) = 100
values_2(1) = 200
values_2(2) = 300

chart.SetSeriesValuesFromArray 0, values_1
chart.SetSeriesValuesFromArray 1, values_2

'Set the chart title
chart.SetTitle "My Chart"

'Set the chart subtitle
chart.SetSubtitle "values in my units"

'Set the graphics settings from a style file
chart.LoadStyle "C:\myStyle.scs"

'The chart is complete, we can now generate the movie
chart.ExportAsResponse

See Also

GetSubtitle Method | SetTitle Method | SetWidth Method | SetHeight Method | SetFrameRate Method

Applies To: Chart Object