How to customize chart axis
Most Excel charts consist of an x-axis and a y-axis, Excel allows you to easily change the looks of the chart axis.
The chart below is what Excel returns using a few random values as a data source, there are, however, no axis lines.
I have drawn a blue rectangle surrounding each group of axis values in the chart above.
To make it easier to see the changes I am about to do, I am now going to remove the major horizontal grid lines.
Simply press with left mouse button on the gridlines and press delete on your keyboard to remove them.
Table of Contents
1. Font size of axis values
To change the font size of the axis values select the axis you want to change.
Go to tab "Home" on the ribbon then press with left mouse button on font size.
I chose font size 16.
Tip! If you want to quickly format the y-axis with the same font size, follow these steps.
- Select the x-axis.
- Go to tab "Home" on the ribbon.
- Press with mouse on "Format Painter" button.
- Press with mouse on y-axis.
Both chart axis now have the same font size, this technique can be used on many different Excel objects, not only charts.
2. Axis value font type
- Press with mouse on the axis values you want to change.
- Go to tab "Home" on the ribbon.
- Press with mouse on font.
- Select a font.
3. Axis value font color
4. Customize axis line
- Press with right mouse button on on x-axis values.
- Press with mouse on "Format Axis..."
- Press with mouse on the "Fill and Line" button.
- Press with mouse on Line to expand the Line settings
- Now you can change the color of the axis line, thickness, dashed or dotted and so on.
I exaggerated the axis line thickness and changed the color black to make it stand out.
5. Axis line position
- To change the position of the x-axis you must press with right mouse button on on the y-axis and vice versa.
- Press with mouse on "Format Axis..."
- Press with mouse on the "Axis Options" button.
- Find Horizontal Axis crosses and select Axis value.
- Change it to the value on the y-axis you want the x-axis to cross, or vice versa.
6. Add axis title text
The chart above has no descriptive titles, follow these simple steps to add chart axis titles.
- Select chart.
- Go to tab "Design" on the ribbon. The tab will appear as soon as you select the chart.
- Press with mouse on "Add Chart Element".
- Press with left mouse button on "Axis Titles".
- Press with mouse on "Primary Horizontal" or "Primary Vertical"
Built-in Charts
Combo Charts
Combined stacked area and a clustered column chartCombined chart – Column and Line on secondary axis
Combined Column and Line chart
Chart elements
Chart basics
How to create a dynamic chartRearrange data source in order to create a dynamic chart
Use slicers to quickly filter chart data
Four ways to resize a chart
How to align chart with cell grid
Group chart categories
Excel charts tips and tricks
Custom charts
How to build an arrow chartCustom chart examples
How to graph an equation
Build a comparison table/chart
Heat map yearly calendar
Advanced Gantt Chart Template
Sparklines
Win/Loss Column LineHighlight chart elements
Highlight a column in a stacked column chart no vbaHighlight a group of chart bars
Highlight a data series in a line chart
Highlight a data series in a chart
Highlight a bar in a chart
Interactive charts
How to filter chart dataHover with mouse cursor to change stock in a candlestick chart
How to build an interactive map in Excel
Highlight group of values in an x y scatter chart programmatically
Use drop down lists and named ranges to filter chart values
How to use mouse hover on a worksheet [VBA]
How to create an interactive Excel chart [VBA]
Change chart series by clicking on data [VBA]
Change chart data range using a Drop Down List [VBA]
How to create a dynamic chart
Animate
Line chart Excel Bar Chart Excel chartAdvanced charts
Custom data labels in a chartImprove your X Y Scatter Chart with custom data labels
Label line chart series
How to position month and year between chart tick marks
How to add horizontal line to chart
Add pictures to a chart axis
How to color chart bars based on their values
Excel chart problem: Hard to read series values
Build a stock chart with two series
Change chart axis range programmatically
Change column/bar color in charts
Hide specific columns programmatically
Dynamic stock chart
How to replace columns with pictures in a column chart
Color chart columns based on cell color
Heat map using pictures
Dynamic Gantt charts
Stock charts
Build a stock chart with two seriesDynamic stock chart
Change chart axis range programmatically
How to create a stock chart
Excel categories
One Response to “How to customize chart axis”
Leave a Reply
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Nice! But how do you format the background color of the y axis based on value settings? For example, 0 to 80% is green, 81 to 90% is yellow, the rest is red. Thank you.