Applies To
Excel for Microsoft 365 Word for Microsoft 365 Outlook for Microsoft 365 PowerPoint for Microsoft 365 Excel for Microsoft 365 for Mac Word for Microsoft 365 for Mac PowerPoint for Microsoft 365 for Mac Excel 2024 Outlook 2024 PowerPoint 2024 Excel 2024 for Mac Word 2024 for Mac PowerPoint 2024 for Mac Excel 2021 Word 2021 Outlook 2021 PowerPoint 2021 Excel 2021 for Mac Word 2021 for Mac PowerPoint 2021 for Mac Excel 2019 Word 2019 Outlook 2019 PowerPoint 2019 Excel 2016 Word 2016 Outlook 2016 PowerPoint 2016
The horizontal (category) axis, also known as the x axis, of a chart displays text labels instead of numeric intervals and provides fewer scaling options than are available for a vertical (value) axis, also known as the y axis, of the chart.
However, you can specify the following axis options:
-
Interval between tick marks and labels
-
Placement of labels
-
Order in which categories are displayed
-
Axis type (date or text axis)
-
Placement of tick marks
-
Point where the horizontal axis crosses the vertical axis
To change the scale of other axes in a chart, see Change the scale of the vertical (value) axis in a chart or Change the scale of the depth (series) axis in a chart.
WindowsmacOS
-
In a chart, click to select the category axis that you want to change, or do the following to select the axis from a list of chart elements:
-
Click anywhere in the chart.
This displays the Chart Tools, adding the Design and Format tabs.
-
On the Format tab, in the Current Selection group, click the arrow in the box at the top, and then click Horizontal (Category) Axis.
-
-
On the Format tab, in the Current Selection group, click Format Selection.
-
In the Format Axis pane, do any of the following:
Important:The following scaling options are available only when a category axis is selected.
See AlsoChange the scale of the vertical (value) axis in a chartChange the scale of the horizontal (category) axis in a chartAdd a fill or effect to a shape or text boxCreate a histogram - Microsoft Support-
To reverse the order of categories, expand Axis Options, and then select the Categories in reverse order check box.
-
To change the axis type to a text or date axis, expand Axis Options, and then under Axis Type, select Text axis or Date axis. Text and data points are evenly spaced on a text axis. A date axis displays dates in chronological order at set intervals or base units, such as the number of days, months or years, even if the dates on the worksheet are not in order or in the same base units.
Note:Selected by default, Automatically select based on data determines the axis type that makes the most sense for your type of data.
-
To change the point where you want the vertical (value) axis to cross the horizontal (category) axis, expand Axis Options, and then under Vertical axis crosses, select At category number and type the number that you want in the text box, or select At maximum category to specify that the vertical (value) axis cross the horizontal (category) axis after the last category on the x-axis.
-
To change the interval between tick marks, expand Tick Marks, and then in the Interval between tick marks box, type the number that you want.
Note:The number that you type determines how many categories are displayed between the tick marks.
-
To change the placement of the axis tick marks, expand Tick Marks, and then select any of the options that you want in the Major type and Minor type boxes.
-
To change the interval between axis labels, expand Labels, and then under Interval between labels, select Specify interval unit and type the number you want in the text box.
Tip:Type 1 to display a label for every category, 2 to display a label for every other category, 3 to display a label for every third category, and so on.
-
To change the placement of axis labels, expand Labels, and then in the Distance from axis box, type the number that you want.
Tip:Type a smaller number to place the labels closer to the axis. Type a larger number if you want more distance between the label and the axis.
-
Tips:
-
After changing the scale of the axis, you may also want to change the way that the axis is formatted. For more information, see Change the display of chart axes.
-
Scaling does not change the series overlap or gap width between data series. To change the series overlap or gap width, right-click a data series, and then click Format Data Series. Under Series Options, specify the settings that you want.
By default, the minimum and maximum scale values of each axis in a chart are calculated automatically. However, you can customize the scale to better meet your needs. For example, if all the data points in your data table are between 60 and 90, you might want the value (y) axis to have a range of 50 to 100 instead of 0 to 100. When a value axis covers a very large range, you can also change the axis to a logarithmic scale (also known as log scale).
-
This step applies to Word for Mac only: On the View menu, click Print Layout.
-
Click the chart.
-
On the Format tab, click Horizontal (Category) Axis in the dropdown list and then click Format Pane.
-
In the Format Axis pane, do any of the following:
Important:The following scaling options are available only when a category axis is selected.
-
To reverse the order of categories, expand Axis Options, and then select the Categories in reverse order check box.
-
To change the axis type to a text or date axis, expand Axis Options, and then under Axis Type, select Text axis or Date axis. Text and data points are evenly spaced on a text axis. A date axis displays dates in chronological order at set intervals or base units, such as the number of days, months or years, even if the dates on the worksheet are not in order or in the same base units.
Note:Selected by default, Automatically select based on data determines the axis type that makes the most sense for your type of data.
-
To change the point where you want the vertical (value) axis to cross the horizontal (category) axis, expand Axis Options, and then under Vertical axis crosses, select At category number and type the number that you want in the text box, or select At maximum category to specify that the vertical (value) axis cross the horizontal (category) axis after the last category on the x-axis.
-
To change the interval between tick marks, expand Tick Marks, and then in the Interval between tick marks box, type the number that you want.
Note:The number that you type determines how many categories are displayed between the tick marks.
-
To change the placement of the axis tick marks, expand Tick Marks, and then select any of the options that you want in the Major type and Minor type boxes.
-
To change the interval between axis labels, expand Labels, and then under Interval between labels, select Specify interval unit and type the number you want in the text box.
Tip:Type 1 to display a label for every category, 2 to display a label for every other category, 3 to display a label for every third category, and so on.
-
To change the placement of axis labels, expand Labels, and then in the Distance from axis box, type the number that you want.
Tip:Type a smaller number to place the labels closer to the axis. Type a larger number if you want more distance between the label and the axis.
-
To position the label, expand Labels, and select an option in the dropdown list box.
-
Need more help?
Want more options?
Discover Community
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Microsoft 365 subscription benefits
Microsoft 365 training
Microsoft security
Accessibility center
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.