How to Remove White Space to the Right of an Excel Chart
Question details
The user needs to eliminate unnecessary white space appearing on the right side of an Excel chart to improve its printed and displayed layout.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Formatting and preparing an Excel chart for presentation or printing where the visual area needs to be maximized without empty gaps.
- Observed behavior
- The chart renders with excessive white space on the right side, and attempting to remove it sometimes inadvertently exposes unnecessary blank rows or lines.
Before modifying your chart settings, check your print preview to identify if the extra space is caused by worksheet margins or if the chart itself is pulling in blank data cells.
Adjust Page Setup and Margins
Modify the page margins and scaling settings to optimize the chart's display and eliminate printing white space.
Often, white space on the sides of a chart during printing is dictated by the worksheet's page setup. By narrowing the margins and adjusting the scaling, you can force the chart to occupy the full width of the page.
Navigate to the 'Page Layout' tab on the Excel ribbon, click on 'Margins', and select 'Custom Margins' at the bottom of the drop-down menu.
In the Page Setup dialog box, set the 'Left' and 'Right' margins to 0 or a very small value to maximize the horizontal space.
Switch to the 'Page' tab within the same dialog box. Under the 'Scaling' section, select 'Fit to' and set it to 1 page wide by 1 page tall.
If the chart is embedded in the sheet rather than on its own chart sheet, manually adjust the widths of the underlying columns behind the chart to tighten the display area.

Modify the Chart's Source Data Range
Adjust the selected data range for the chart to exclude blank cells that create unwanted empty space on the right side.
Easily Optimize Chart Layouts in WPS Spreadsheet
WPS Spreadsheet offers an intuitive interface to seamlessly adjust page margins, scale charts for printing, and manage data ranges, making it easy to eliminate unwanted white space.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the spreadsheet containing the chart with excess white space.
- 2. Adjust Margins: Go to the 'Page Layout' tab, click 'Margins', and select 'Custom Margins' to reduce the right and left borders.
- 3. Refine Source Data: Right-click your chart, click 'Select Data', and adjust the boundary box to highlight only non-empty cells.
- 4. Preview and Save: Click the Print Preview icon to ensure the white space has been removed, then save your perfectly formatted document.

Frequently Asked Questions
Why does my Excel chart show blank space on the right even when the data is filled?
This usually happens when the chart's 'Data Range' includes empty columns next to your actual data. Excel reserves space for these columns even if they are blank. It can also be caused by incorrect page scaling settings.
How can I make my chart automatically ignore blank cells as I add new data?
You can create a Dynamic Named Range using the OFFSET and COUNTA functions, and then use that named range as your chart's data source. This allows the chart to expand or shrink automatically without leaving empty margins.
Will changing the page margins affect other charts and tables on the same Excel sheet?
Yes. When you change the margins in the Page Setup menu, it affects the entire printed worksheet. If you only want to change the dimensions of a single chart, resize the chart object manually instead of modifying worksheet margins.
I removed the white space, but now unwanted extra gridlines are showing. How do I fix this?
This indicates your chart source is still capturing blank rows. Right-click the chart, choose 'Select Data', and strictly select only the rows and columns that contain the actual values you want to plot.




