Retrieves the title of a given axis.
object.GetAxisTitle axis_number
The GetAxisTitle method returns a string value that contains the title of the axis specified by axis_number.
The axis is defined by an integer value (the axis_number parameter) which is interpreted as follows:
Code | Definition |
---|---|
0 |
Horizontal Axis |
1 |
Vertical Axis |
2 |
Secondary Horizontal Axis |
3 |
Secondary Vertical Axis |
The following VBScript code illustrates use of the GetAxisTitle method in an ASP page.
chart.SetDataFromQuery 'We want a title for the horizontal axis (add one if it is not yet available) htitle= chart.GetAxisTitle 0 If htitle = "" Then chart.SetAxisTitle 0, "my horizontal axis title" End If chart.ExportAsResponse
Applies To: Chart Object