How to change chart axis labels' font color and size in Excel?
For example you have a chart and Y axis labels are numbers, and now you are wanting to change the labels' font color and font size based on value scale in Excel, how to solve this problem? Here I will introduce 4 ways to change labels' font color and size in a selected axis of chart in Excel easily.
- Change all axis labels' font color and size in a chart
- Change all negative axis labels' font color in a chart
- Change axis labels' font color by positive/negative/0 with conditional formatting in a chart
- Change axis labels' font color if greater or less than value with conditional formatting in a chart
Change all axis labels' font color and size in a chart
We can easily change all labels' font color and font size in X axis or Y axis in a chart.
Just click to select the axis you will change all labels' font color and size in the chart, and then type a font size into the Font Size box, click the Font color button and specify a font color from the drop down list in the Font group on the Home tab. See below screen shot:
Then the font color and font size of all labels in the selected axis are changed at once.
Apply conditional formatting to fill columns in a chart
By default, all data point in one data series are filled with same color. Here, with the Color Chart by Value tool of Kutools for Excel, you can easily apply conditional formatting to a chart, and fill data points with different colors based on point values.
Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now
Change all negative axis labels' font color in a chart
If you want to change all negative labels' font color in X axis or Y axis in a chart, you can do it as follows:
1. Right click the axis where you will change all negative labels' font color, and select the Format Axis from the right-clicking menu.
2. Do one of below processes based on your Microsoft Excel version:
(1) In Excel 2013's Format Axis pane, expand the Number group on the Axis Options tab, click the Category box and select Number from drop down list, and then click to select a red Negative number style in the Negative numbers box.
(2) In Excel 2007 and 2010's Format Axis dialog box, click Number in the left bar, click to highlight the Number in the Category box, and then click to select a red Negative number style in the Negative numbers box.
Excel 2013 and higher versions:
Excel 2007 and 2010:
Note: You can also enter the code of #,##0_ ;[Red]-#,##0 into the Format Code box and click the Add button too. By the way, you can change the color name in the format code, such as #,##0_ ;[Blue]-#,##0.
3. Close the Format Axis pane or Format Axis dialog box.
Now all negative labels in the selected axis are changed to red (or other color) immediately. See below screen shot:
Change axis labels' font color by positive/negative/0 with conditional formatting in a chart
Sometimes, you may want to change labels' font color by positive/negative/0 in an axis in chart. You can get it done with conditional formatting easily as follows:
1. Right click the axis you will change labels by positive/negative/0, and select the Format Axis from right-clicking menu.
2. Do one of below processes based on your Microsoft Excel version:
(1) In Excel 2013's Format Axis pane, expand the Number group on the Axis Options tab, and then enter [Blue]#,###;[Red]#,###;[Green]0; into the Format Code box, and click the Add button.
(2) In Excel 2007 and 2010's Format Axis dialog box, click the Number in left bar, enter [Blue]#,###;[Red]#,###;[Green]0; into the Format Code box, and click the Add button.
Excel 2013 and higher versions:
Excel 2007 and 2010:
Note: In the format code of [Blue]#,###;[Red]#,###;[Green]0; , the "Blue" means it will change all positive labels to blue, "Red" means it will change all negative labels to red, "Green" means 0 will turn to green, and you can change all color names based on your needs.
3. Close the Format Axis pane or Format Axis dialog box.
Then all labels' font color are changed based on the format code in the selected axis. See below screen shot:
Change axis labels' font color if greater or less than value with conditional formatting in a chart
If you want to change axis labels' font color when label numbers are greater or less than a specific value in a chart, you can get it done with conditional formatting too.
1. Right click the axis you will change labels when they are greater or less than a given value, and select the Format Axis from right-clicking menu.
2. Do one of below processes based on your Microsoft Excel version:
(1) In Excel 2013's Format Axis pane, expand the Number group on the Axis options tab, enter [Blue][<=400]General;[Magenta][>400] Format Code box, and click the Add button.
(2) In Excel 2007 and 2010's Format Axis dialog box, click Number in left bar, enter [Blue][<=400]General;[Magenta][>400] into Format Code box, and click the Add button.
Excel 2013 and higher versions:
Excel 2007 and 2010:
3. Close the Format Axis pane/dialog box.
Note: The format code [Blue][<=400]General;[Magenta][>400] means if labels are less or equal to 400, they will be changed to blue, and if labels are greater than 400 they will be changed to magenta. See below screen shot:
Demo: change labels' font color on axis of chart in Excel
Related articles:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!