In this section: |
Reference: |
Vertical and horizontal axes are based on the orientation of the graph. For example, in a vertical graph, the horizontal axis refers to the X axis and the vertical axis refers to the Y axis. In a horizontal graph, the horizontal axis refers to the Y axis and the vertical axis refers to the X axis. This is important to consider, since options could change depending on the orientation of the graph.
A chart can contain the following types of axis labels:
Whether you access axis options from the ribbon, or the shortcut menu, you are presented with the Format Axis dialog box of options for formatting for both vertical and horizontal axes. The Format Axis dialog box contains the following tabs:
You use the Format Vertical Axis dialog box to specify formatting options for the vertical axis in your chart.
Use the Scale tab to modify scale properties.
The Scale tab is shown in the following image.
The Scale tab contains the following options:
Use the Title tab to show or hide the axis title, and create and style the title for the axis.
The Title tab contains the following options:
Use the Labels tab to format the layout of the axis labels.
The Labels tab contains the following options:
The Format Labels drop-down menu provides a list of preset formats that you can apply to labels. When you select a custom format, it must be defined using a custom format pattern. See the following table for a list and description of the characters that you can use in a custom format.
Character |
Description |
---|---|
# |
Is a digit. |
0 (zero) |
Shows as absent. |
. (period) |
Is a placeholder for a decimal separator. |
, (comma) |
Is a placeholder for a grouping separator. |
; (semicolon) |
Separates formats. |
- (dash) |
Is the default negative prefix. |
% (percent) |
Divides by 100 and shows as a percentage. |
x |
Determines that any other characters can be used in the prefix or suffix. |
‘ (apostrophe) |
Is used to quote special characters in a prefix or suffix. |
Use the Advanced tab to modify additional axis properties.
The Advanced tab contains the following options:
For instructions on how to open this dialog box, see the procedures in Using Axis Properties.
You use the Format Horizontal Axis dialog box to specify formatting options for the horizontal axis in your chart.
The General tab contains the Show axis line check box, which controls the display of the axis line. When this check box is selected, you can style the axis line.
The General tab is shown in the following image.
The General tab contains the following options:
Use the Title tab to create and style the title for the axis.
The Title tab contains the following options:
Use the Labels tab to format the layout of the axis labels.
The Labels tab contains the following options:
Use the Advanced tab to modify additional axis properties.
The Advanced tab contains the following options:
For instructions on how to open this dialog box, see the procedures in Using Axis Properties.
Formatting options are available for secondary axes in dual-axis charts. For example, in a vertical dual-axis chart, the secondary vertical axis refers to the Y2 axis.
The Format Secondary Axis dialog box contains the following tabs for both vertical and horizontal axes:
When you right-click an axis label or title in a chart in Live Preview, a menu of options opens. The options for the right-click axis label elements are described in the following table.
Element |
Option |
Description |
---|---|---|
Axis Title |
Delete |
Deletes the axis title from the chart and updates the Live Preview accordingly. |
Change Title |
Enables you to change the axis title. |
|
Style Title |
Enables you to apply styling to the axis title, using the Style dialog box. For more information, see Style Dialog Box. |
|
Horizontal Labels |
Delete |
Deletes labels from the chart and updates the Live Preview accordingly. |
Stagger |
Controls the positioning of the labels. The On value positions the labels in a zigzag pattern. The Off default value positions the labels in a straight row. |
|
Rotate |
Rotates the labels a specified number of degrees. |
|
Style Labels |
Enables you to apply styling to the labels, using the Style dialog box. For more information, see Style Dialog Box. |
|
More Axis Options |
Opens the Format Axis dialog box. For more information, see Formatting Axis Labels. |
|
Vertical Labels |
Delete |
Deletes labels from the chart and updates the Live Preview accordingly. |
Rotate |
Rotates the labels a specified number of degrees. |
|
Format Labels |
Formats the labels according to the value that you specify. |
|
Style Labels |
Enables you to apply styling to the labels, using the Style dialog box. For more information, see Style Dialog Box. |
|
More Axis Options |
Opens the Format Axis dialog box. For more information, see Formatting Axis Labels. |
How to: |
The following sections contain procedures for customizing an axis. The procedures are organized by the tab and group in which their associated options appear on the ribbon.
Axis labels appear by default.
The axis labels are deleted from the chart.
Note: You can only apply a staggered effect to horizontal axis labels.
The axis labels are staggered.
The axis labels are rotated.
The axis labels are formatted accordingly.
The Format Axis dialog box opens.
The axis scale is set accordingly.
The Format Axis dialog box opens.
The axis title is styled accordingly.
Note: Right-click the axis title to delete, change, or style the axis title.
The Format Axis dialog box opens.
You can edit the color, weight, and style of all the lines that you set in the Line Style dialog box.
The axis advanced options are set accordingly.