Change the display of chart axes
Charts typically have two axes that are used to measure and categorize data: a vertical axis (also known as value axis or y axis), and a horizontal axis (also known as category axis or x axis). 3-D charts have a third axis, the depth axis (also known as series axis or z axis), so that data can be plotted along the depth of a chart. Radar charts do not have horizontal (category) axes, and pie and doughnut charts do not have any axes.
Vertical (value) axis
Horizontal (category) axis
Depth (series) axis
Not all chart types display axes the same way. For example, xy (scatter) charts and bubble charts show numerical values on both the horizontal axis and the vertical axis. An example might be how inches of rainfall are plotted against barometric pressure. Both of these items have numerical values, and the data points will be plotted on the x and y axes relative to their numerical values. Value axes provide a variety of options, such as setting the scale to logarithmic.
Other chart types, such as column, line, and area charts, show numerical values on the vertical (value) axis only and show textual groupings (or categories) on the horizontal axis. An example might be how inches of rainfall are plotted against geographic regions. In this example, the geographic regions are textual categories of the data that are plotted on the horizontal (category) axis. The geographic regions will be uniformly spaced because they are text only. Keep this difference in mind when you select a chart type, because the options are different for value and category axes. On a related note, the depth (series) axis is another form of category axis. For more information about how to change the scaling of value axes, see Change the scale of the vertical (value) axis in a chart.
When you create a chart, tick marks and labels are displayed by default on axes. You can adjust the way that they are displayed by using major and minor tick marks and labels. To eliminate clutter in a chart, you can display fewer axis labels or tick marks on the horizontal (category) axis by specifying the intervals at which you want categories to be labeled, or by specifying the number of categories that you want to display between tick marks.
You can also change the alignment and orientation of the labels, and change or format the text and numbers that they display, for example, to display a number as a percentage.What do you want to do?
Adjust axis tick marks and labels
Change the number of categories between labels or tick marks
Change the alignment and orientation of labels
Change the text of category labels
Change the format of text and numbers in labels
Display or hide axes
- Click the chart for which you want to display or hide axes.
This displays the
Chart Tools
, adding theDesign
,Layout
, andFormat
tabs. - On the
Layout
tab, in theAxes
group, clickAxes
. - Do one of the following:
- To display an axis, click the type of axis that you want to display, and then click one of the options that show the axis.
- To hide an axis, click the type of axis that you want to hide, and then click
None
.
Adjust axis tick marks and labels
- On a chart, click the axis that has the tick marks and labels that you want to adjust, or do the following to select the axis from a list of chart elements:
- Click the chart.
This displays the
Chart Tools
, adding theDesign
,Layout
, andFormat
tabs. - On the
Format
tab, in theCurrent Selection
group, click the arrow next to theChart Elements
box, and then click the axis that you want to select.
- Click the chart.
- On the
Format
tab, in theCurrent Selection
group, clickFormat Selection
. - Click
Axis Options
if it's not selected, and then do one or more of the following:- To change the display of major tick marks, in the
Major tick mark type
box, click the tick mark position that you want. - To change the display of minor tick marks, in the
Minor tick mark type
drop-down list box, click the tick mark position that you want. - To change the position of the labels, in the
Axis labels
box, click the option that you want. -
Tip You can hide tick marks or tick-mark labels by clicking
None
.
- To change the display of major tick marks, in the
Change the number of categories between labels or tick marks
- On a chart, click the horizontal (category) axis that you want to change, or do the following to select the axis from a list of chart elements:
- Click the chart.
This displays the
Chart Tools
, adding theDesign
,Layout
, andFormat
tabs. - On the
Format
tab, in theCurrent Selection
group, click the arrow next to theChart Elements
box, and then click the axis that you want to select.
- Click the chart.
- On the
Format
tab, in theCurrent Selection
group, clickFormat Selection
. - Click
Axis Options
if it's not selected, and then do one or both of the following:- To change the interval between axis labels, under
Interval between labels
, clickSpecify interval unit
, and then in the text box, type the number that you want.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, in the
Label distance from axis
box, type the number that you want.Tip Type a lower number to place the labels closer to the axis. Type a higher number if you want more distance between the label and the axis.
- To change the interval between axis labels, under
Change the alignment and orientation of labels
You can change the alignment of axis labels on both horizontal (category) and vertical (value) axes. When you have multiple-level category labels in your chart, you can change the alignment of all levels of labels. You can also change the amount of space between levels of labels on the horizontal (category) axis.
- On a chart, click the axis that has the labels that you want to align differently, or do the following to select the axis from a list of chart elements:
- Click the chart.
This displays the
Chart Tools
, adding theDesign
,Layout
, andFormat
tabs. - On the
Format
tab, in theCurrent Selection
group, click the arrow next to theChart Elements
box, and then click the axis that you want to select.
- Click the chart.
- On the
Format
tab, in theCurrent Selection
group, clickFormat Selection
. - On the
Alignment
tab, underText Layout
, click the position that you want in theVertical alignment
box. - To change the orientation of the text, click the position that you want in the
Text Direction
box.Tip To quickly change the horizontal alignment of selected axis labels, right-click the axis, and then click
Align Left
,
Center
, or
Align Right
on the
Mini Toolbar
.
Change the text of category labels
Do one of the following:
- To change the category labels on the worksheet, do the following:
- Click the cell that contains the name of the label that you want to change.
- Type the new name, and then press ENTER.
Note Changes that you make on the worksheet are automatically updated in the chart.
- To change category labels on the chart, click the the horizontal axis on a chart, or do the following to select the axis from a list of chart elements:
- Click the chart.
This displays the
Chart Tools
, adding theDesign
,Layout
, andFormat
tabs. - On the
Format
tab, in theCurrent Selection
group, click the arrow next to theChart Elements
box, and then click the axis that you want to select. - On the
Design
tab, in theData
group, clickSelect Data
. - Under
Horizontal (Categories) Axis Labels
, clickEdit
. - In the
Axis Label Range
box, specify the worksheet range that you want to use as category axis labels, or type the labels that you want to use, separated by commas, for example, Division A, Division B, Division C.Tip You can also click the
Collapse Dialog
buttonat the right end of the
Axis Label Range
box and then select the range that you want to use as category axis labels on the worksheet. When you finish, click theCollapse Dialog
button again to display the entire dialog box.Note If you type the label text in the
Axis Label Range
box, the category axis label text is no longer linked to a worksheet cell.
- Click the chart.
Change the format of text and numbers in labels
Do one of the following:
- To format text in labels, do the following:
- On a chart, right-click the axis labels that you want to format.
- On the
Mini toolbar
, click the formatting options that you want.Tip You can also use the formatting buttons on the Ribbon (
Home
tab,Font
group).
- To format numbers in labels, do the following:
- On a chart, click the axis that displays the numbers that you want to format, or do the following to select the axis from a list of chart elements:
- Click the chart.
This displays the
Chart Tools
, adding theDesign
,Layout
, andFormat
tabs. - On the
Format
tab, in theCurrent Selection
group, click the arrow next to theChart Elements
box, and then click the axis that you want to select.
- Click the chart.
- On the
Format
tab, in theCurrent Selection
group, clickFormat Selection
. - Click
Number
, and then in theCategory
box, select the number format that you want.Tip If the number format you select uses decimal places, you can specify them in the
Decimal places
box. - To keep numbers linked to the worksheet cells, select the
Linked to Source
check box.
- On a chart, click the axis that displays the numbers that you want to format, or do the following to select the axis from a list of chart elements:
See also:
- Add or remove a secondary axis in a chart
- Change the scale of the depth (series) axis in a chart
- Change the scale of the horizontal (category) axis in a chart
- Change the scale of the vertical (value) axis in a chart
- Use titles on a chart