Chart & Visualization Issues

How to Align Chart X-Axis with Zero on Both Y-Axes in Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 11, 2026 869 views

Question details

The user needs to align the zero point on the X-axis for both primary and secondary Y-axes in a dual-axis chart.

How to Align Chart X-Axis with Zero on Both Y-Axes in Excel
Product
Microsoft Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Creating a dual-axis chart where both data series contain positive and negative numbers, but the zero baseline doesn't match.
Observed behavior
Excel sets different automatic minimum and maximum bounds for the primary and secondary Y-axes, causing the zero lines to appear at different vertical positions.
Before you start

Make sure your chart is already configured with both a primary and a secondary Y-axis, and identify the current maximum and minimum bounds applied to your primary Y-axis.

Solution 1Recommended

Manually Set Secondary Axis Bounds to Match the Primary Axis Ratio

Calculate the ratio of the maximum to minimum values on the primary axis, then apply matching proportional bounds to the secondary axis.

Excel aligns zero points automatically only when both axes use the exact same ratio between their upper and lower limits. By defining these limits manually, you force both axes to place the zero mark at the exact same horizontal position.

1
Check the primary axis bounds

Right-click the primary Y-axis on the left side of your chart and select 'Format Axis'. Note the 'Minimum' and 'Maximum' bounds listed in the Axis Options.

2
Calculate the primary axis ratio

Divide the maximum bound by the minimum bound. For example, if your primary axis limits are 120 and -40, the ratio is 120 / -40 = -3.

3
Determine appropriate secondary axis bounds

Look at the data range for your secondary axis. Choose a new maximum and minimum that share the exact same ratio of -3. For instance, if your secondary data peaks at 14, suitable limits would be 15 and -5 (since 15 / -5 = -3).

4
Apply bounds to the secondary axis

Right-click the secondary Y-axis on the right side of the chart and select 'Format Axis'. Under Axis Options, manually type your calculated values into the 'Maximum' and 'Minimum' bound fields.

Manually Set Secondary Axis Bounds to Match the Primary Axis Ratio
Alignment Complete: Once the ratios match, the zero line for both the primary and secondary Y-axes will instantly snap into a single unified X-axis line.
Create Pro Charts with WPS Office

Easily Align Chart Axes in WPS Spreadsheet

WPS Spreadsheet provides robust, easy-to-use chart formatting tools, making tasks like adjusting axis bounds and aligning zero points quick and highly accurate.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your dual-axis chart.
  2. 2. Access Axis Options: Double-click the primary Y-axis to immediately open the Axis Options pane on the right side of the screen.
  3. 3. Set the Bounds: Double-click the secondary Y-axis and manually enter your calculated Maximum and Minimum limits to match the primary axis ratio.
  4. 4. Save and share: Save your newly aligned chart in standard .xlsx format, ensuring it looks perfect on any device.
Fully compatible with Microsoft Excel (.xlsx) formats and chart properties.Intuitive 'Format Axis' pane for precise numeric adjustments.Free and lightweight alternative to Microsoft Office.Extensive library of customizable chart styles and templates.
microsoft office alternative - wps office

Frequently Asked Questions

Why do the zero lines separate when adding a secondary axis?

Excel calculates the minimum and maximum limits (bounds) for each axis independently based on its specific data range. If the numerical spread differs significantly, the zero position ends up scaled to a different vertical height on each axis.

Will I need to change these settings if my chart data updates?

Yes. Since you are changing the bounds from 'Auto' to fixed manual values, any significant updates to your data that push values beyond your set limits will require you to recalculate and input new bounds to maintain the zero alignment.

Is there a way to automate the alignment of both Y-axes?

Excel does not have a built-in toggle to automatically lock the zero points of a dual-axis chart. However, advanced users can use VBA macros to automatically calculate and update the secondary axis bounds whenever the worksheet data changes.

How do I add a secondary axis to my chart in the first place?

Right-click the specific data series you want to plot on the secondary axis (like a line on a column chart) and select 'Format Data Series'. In the side pane under Series Options, toggle the selection from 'Primary Axis' to 'Secondary Axis'.