How to Set Custom Excel Chart Gridline Spacing to 100
Question details
The user wants to configure an elevation-profile chart so that the distance labels and gridlines appear exactly at 100-meter intervals.

- Product
- Excel / Spreadsheets
- Device & OS
- not provided
- Scenario
- Creating an elevation-profile chart with custom distance intervals to properly visualize spatial data.
- Observed behavior
- The chart currently displays hundreds of automatically generated gridlines instead of the targeted 100-meter interval spacing.
Ensure your data uses continuous numeric values and that you have selected an XY (Scatter) chart, as standard Line charts treat the horizontal axis as discrete text categories.
Adjust Axis Options to Set Major Unit Spacing
Modify the axis major unit to explicitly define the numerical interval between gridlines and data labels.
In Excel, gridline spacing is directly tied to the axis units. By modifying the Major unit in the Format Axis pane, you force the chart to draw gridlines and labels exactly at your specified interval.
Click directly on the horizontal or vertical value axis in your chart that requires the 100-unit spacing.
Right-click the selected axis and choose 'Format Axis' from the context menu to open the formatting pane on the right side of your screen.
In the Axis Options section, input your desired Minimum and Maximum bounds for the chart based on your elevation data.
Locate the 'Units' section under Axis Options and set the 'Major' value to 100. Press Enter to apply the changes to your gridlines.

Set Custom Gridline Spacing in WPS Spreadsheet
Easily adjust axis options, format gridlines, and customize data visualizations in WPS Spreadsheet. It offers a familiar interface for managing your data while remaining completely free.
- 1. Insert a Scatter Chart: Select your distance and elevation data, go to the Insert tab, and choose an XY (Scatter) chart.
- 2. Access Axis Properties: Double-click the axis you want to modify in order to quickly open the Axis properties dialog.
- 3. Set Major Unit: Navigate to the Axis Options section, change the Major unit spacing to 100, and close the panel to apply.

Frequently Asked Questions
Why can't I change the major unit on my horizontal chart axis?
If you are using a standard Line chart, the horizontal axis is treated as text categories, not numeric values. You need to change your chart type to an XY (Scatter) chart to enable numeric scaling and major unit adjustments on the X-axis.
How do I change the color and thickness of the 100-meter gridlines?
Once your spacing is set to 100 via the Axis Options, click directly on the gridlines in the chart. Right-click and select 'Format Gridlines' to change their color, dash type, and line thickness.
Will changing the major unit to 100 alter the position of my data points?
No, changing the major unit only affects the visual gridlines and the frequency of the axis labels. Your actual data points will remain plotted accurately based on their underlying values.




