How to add an X axis in Google Sheets
Add and label the X axis on a Google Sheets chart from the Chart editor's Customize tab: set the axis title, then style its labels. Interactive demo included.

Quick answer
To add an X axis in Google Sheets, select your data, insert a chart, then open the Chart editor's Customize tab. Add the title under Chart & axis titles > Horizontal axis title, and style the labels under Horizontal axis. Google Sheets automatically generates axis labels from the first column of your data.
Steps at a glance
- Select the data range you want to chart
- Insert a chart from the Insert menu
- If Sheets picks a pie chart, switch Chart type to Column chart
- Open the Chart editor's Customize tab
- Click Horizontal axis to expand its settings
- Under Chart & axis titles, pick Horizontal axis title and type it
- Adjust label font, format, and slant if needed
- Close the editor to apply changes
Interactive demo
Summary
The X axis in a Google Sheets chart displays the categories, dates, or numeric values from your first data column, and Google Sheets lets you label, format, and adjust it through the Chart editor's Customize tab. Configuring this axis properly makes your chart easier to read and more professional for reports or presentations.
Step-by-step guide
Step 1
Select your data range
Highlight the cells you want to visualize, including the column or row you want to appear along the horizontal axis, such as dates, months, or category names. Google Sheets uses this first column as the default X axis source.
Step 2
Insert a chart
Click Insert in the top menu, then choose Chart. If you haven't built a chart yet, follow the steps to create a chart before continuing, since the X axis settings only appear once a chart exists on your sheet.
Step 3
Open the Chart editor
The Chart editor panel opens automatically on the right side of your screen. If it's closed, click the chart, open its three-dot menu, and choose Edit chart to reopen it. If Sheets suggested a pie chart, change Chart type on the Setup tab to Column chart, because pie charts have no X axis.
Step 4
Go to the Customize tab
Inside the Chart editor, click the Customize tab at the top of the panel. This tab contains all the formatting options, including chart style, series colors, and both axis settings.
Step 5
Expand the Horizontal axis section
Scroll down and click Horizontal axis to expand its options. Here you can change the label font, size, bold or italic style, and color, reverse the axis order, and slant the labels for readability.
Step 6
Add an axis title and adjust the range
Open Chart & axis titles, choose Horizontal axis title from the dropdown, and type a descriptive label in the Title text field, such as "Month" or "Region," so viewers instantly understand what the horizontal axis represents. To change which data the axis covers, edit the Data range on the Setup tab.
Step 7
Review and close the editor
Check the chart preview to confirm the axis labels display correctly, then click the X in the top corner of the Chart editor to close it. Your changes apply as you make them. If your chart needs a key to distinguish data series, you can also add a legend for extra clarity.
Why this matters
You're building a sales trend or performance chart, and the horizontal axis shows unclear or unlabeled data points. Adding a proper X axis title and formatting makes the timeline or categories instantly readable, so anyone viewing the chart understands what each column of data represents without extra explanation.
Frequently asked questions
Can I change what data appears on the X axis after creating the chart?
Yes. Open the Chart editor, go to the Setup tab, and edit the data range or switch which column is used for the X axis category.
Does Google Sheets support importing data to build the X axis automatically?
Yes. When you build a chart from imported or pasted data, Google Sheets uses the first column of the range as the X axis labels. The Setup tab shows this as the X-axis field.
Why is my X axis blank even though I added a title?
This usually happens when the chart type doesn't support axis titles, such as pie charts, or when the title field wasn't saved. Reopen the Customize tab, open Chart & axis titles, pick Horizontal axis title, and confirm the text appears in the Title text field.
Related guides
Continue with more step-by-step guides for getting work done.
Create and customize a chart in Google SheetsCreate a chart in Google Sheets with Insert > Chart, then customize titles, colors, legend, and labels in the Chart editor. Fixes for charts that plot wrong.
How to add a legend to a chart in Google SheetsLearn how to add, edit, and reposition a legend on any Google Sheets chart using the Chart editor's Customize tab.
How to make a line graph in Google SheetsLearn how to build and customize a line graph in Google Sheets, from selecting data to styling axes, legends, and colors on the free plan.
How to connect Google Forms to Google SheetsStep-by-step guide to connecting Google Forms responses to a Google Sheets spreadsheet, including creating a form directly from an existing sheet.
How to convert CSV to Google SheetsLearn how to convert a CSV file to Google Sheets format, preserve your column structure, and save it as a native Sheets file.
How to count cells with text in Google SheetsLearn how to count cells with text in Google Sheets using COUNTA, COUNTIF, and wildcards for exact or partial text matches.
Create interactive demos like this one — free, no coding required.
Start for free →