Remove Empty Date Gaps from an Excel Chart on Mac
Question details
The user needs to remove empty spaces in an Excel chart on macOS that appear for dates with no values.

- Product
- Microsoft Excel for Mac / WPS Office Spreadsheet
- Device & OS
- macOS
- Scenario
- A user has a date-based chart with missing values and wants the available points or columns to appear next to one another without gaps.
- Observed behavior
- Excel treats true dates as a time axis, so it reserves space for missing dates and creates visible empty gaps in the chart.
Make sure the date column can be temporarily edited or duplicated, because the fix replaces true date values with text labels that look like dates so the chart uses a category axis.
Use Text Date Labels to Create a Category Axis
Use this workaround when you want the chart points for available dates to sit next to one another without empty gaps.
Excel and WPS Office charts treat actual date values as a continuous time axis, which reserves space for every calendar date. When the horizontal values are text labels that look like dates, the chart uses a category axis and only plots the labels you provide.
In WPS Office Spreadsheet or Excel for Mac, insert a column beside the date column. Format the cells as Text, then enter each date as a date-like text label, such as 2024-01-01 or Jan 1.
Click the chart, go to Chart Tools or Chart Design, choose Select Data, and set the horizontal category axis labels to the helper text column instead of the original date values.
Right-click the horizontal axis, choose Format Axis, open Axis Options, and confirm the axis type is Text axis or Category axis. If it still shows Date axis, select Text axis or Category axis.
After the chart updates and the gaps disappear, hide the helper column or move it out of the printable area so the original source data remains unchanged.

Remove Empty Date Gaps in WPS Office Spreadsheet
Open your Excel workbook in WPS Office Spreadsheet, replace true date axis labels with text date labels, and switch the chart axis to a category axis so missing dates no longer create empty gaps.
- 1. Open the Excel file in WPS Office Spreadsheet: Launch WPS Office Spreadsheet on your Mac, click Menu > Open, and select the .xlsx file that contains the chart.
- 2. Create text date labels: Add a helper column next to the data and enter the dates as text labels, for example by typing an apostrophe before each date or formatting the cells as Text.
- 3. Change the chart category labels: Select the chart, click Chart Tools > Select Data, and set the category labels to the helper text column instead of the true date axis values.
- 4. Set the axis to Text or Category: Right-click the horizontal axis, choose Format Axis, and under Axis Options select Text axis or Category axis.
- 5. Confirm the gaps are removed: Check that the chart plots available points next to each other, then hide or move the helper column if desired.

Frequently Asked Questions
Why does my Excel chart show gaps for missing dates on Mac?
Excel and WPS Office treat real date values as a continuous time axis. Because the axis includes every calendar date, any date without a value still gets reserved space and appears as a gap.
Can I remove date gaps without changing the source date data?
Yes. Add a helper column containing the same dates as text labels, point the chart category labels to that helper column, and then hide or move the helper column. The original date column stays unchanged.
Will converting dates to text labels break chart sorting?
For a category axis, labels are plotted in the order they appear in the source range. If you need chronological order, keep the helper text labels sorted in that order before setting the chart labels.
How can I tell whether my chart is using a date axis or a category axis?
Right-click the horizontal axis and choose Format Axis. In Axis Options, a date axis shows Date axis, while a category axis shows Text axis or Category axis.
Does WPS Office Spreadsheet have the same category axis fix for Mac?
Yes. WPS Office Spreadsheet can open the Excel workbook, use text date labels for the chart category labels, and set the horizontal axis to Text axis or Category axis.




