Chart & Visualization Issues

How to Set Monthly Intervals on an Excel Stacked Bar Chart Axis

Olivia MillerOlivia Miller Nov 10, 2026 868 views

Question details

The user needs to set the horizontal axis of a stacked bar chart to display major gridlines at exact one-month intervals.

How to Set Monthly Intervals on an Excel Stacked Bar Chart Axis
Product
Excel
Device & OS
not provided
Scenario
Creating a stacked bar chart that visualizes time-based data with gridlines indicating the first day of each month.
Observed behavior
The horizontal axis functions as a strict numeric value axis rather than a date axis, preventing the user from setting irregular monthly intervals (28, 30, or 31 days).
Before you start

Understand that horizontal bar charts treat the horizontal axis as raw numbers rather than dates. Because months vary in length, an exact 'one-month' interval is technically impossible on a standard numeric value axis.

Solution 1Recommended

Approximate Monthly Spacing Using a Custom Major Unit

Set the axis major unit to an average month length to get as close to a monthly interval as possible.

Since the horizontal axis in a bar chart cannot inherently recognize irregular calendar months, you can bypass this limitation by using a mathematical average. By dividing the days in a year (365) by the number of months (12), you get an average month length of roughly 30.416666 days.

1
Select the Axis

Right-click the horizontal axis (the value axis at the bottom) of your stacked bar chart.

2
Open Axis Options

Select 'Format Axis' from the context menu to open the formatting pane on the right side of your screen.

3
Set the Major Unit

Under 'Axis Options', locate the 'Units' section. Click into the 'Major' box and type 30.416666.

4
Apply Changes

Press Enter to apply. Your gridlines will now approximate a monthly spacing, though they may occasionally shift slightly off the exact first day of the month.

Approximate Monthly Spacing Using a Custom Major Unit
Expect Minor Discrepancies: Because this method uses an average, gridlines will not perfectly align with the 1st of every single month, particularly during leap years or around February.
Advanced Spreadsheet Tool

Visualize Time-Based Data with WPS Spreadsheet

WPS Office offers robust spreadsheet features fully compatible with Microsoft Excel, making it easy to create, format, and adjust complex charts like stacked columns and bars to perfectly visualize your timelines.

  1. 1. Open Your Data: Launch WPS Spreadsheet and open your document containing the dates and values.
  2. 2. Insert the Chart: Highlight your data range, go to the 'Insert' tab, and choose your preferred Chart type (e.g., Stacked Column for true dates).
  3. 3. Customize the Axis: Double-click the axis to open the properties pane, where you can instantly adjust bounds, set date units, and format gridlines.
100% format compatibility with Microsoft Excel (.xlsx) filesAdvanced formatting for numeric and true date axesIntuitive chart design tools for quick data visualizationFree to download and lightweight on your system
microsoft office alternative - wps office

Frequently Asked Questions

Why can a Stacked Column chart show exact months but a Stacked Bar chart cannot?

In a Column chart, the horizontal axis is treated as a category or date axis, which natively understands the calendar and irregular month lengths. In a Bar chart, the horizontal axis is strictly a numeric value axis, which only spaces gridlines at fixed mathematical intervals.

Is there any way to force a date axis on a horizontal bar chart?

No. Standard spreadsheet software, including Excel, does not support a true date axis on the value (horizontal) axis of a bar chart. You must either approximate the unit manually or switch to a column or scatter chart.

What is the exact number to use for average monthly intervals?

You should type 30.416666 (which is 365 divided by 12) into the Major Unit box in the Format Axis pane to get the closest mathematical approximation of a monthly interval.