Chart & Visualization Issues

How to Keep Excel Chart Bars Visible When Using Slicers

Tauseeq MagsiTauseeq Magsi Nov 3, 2026 868 views

Question details

The user wants to prevent chart bars and categories from disappearing from the axis when a connected slicer filters out data for those specific categories.

How to Keep Excel Chart Bars Visible When Using Slicers
Product
Spreadsheet
Device & OS
not provided
Scenario
Filtering chart data using a slicer without losing the axis categories that currently have no data.
Observed behavior
When a slicer filters out a category or returns no value, the corresponding chart bar and axis label completely disappear from the chart layout.
Before you start

Before adjusting chart settings, ensure your chart is connected to a PivotTable or a structured dataset, and identify whether the filtered categories contain zeroes or are completely blank.

Solution 1Recommended

Enable 'Show Items with No Data' in PivotTable Options

If your chart is a PivotChart, you can force the PivotTable to display categories even when the slicer filters them out, keeping the chart axis intact.

PivotCharts are directly linked to PivotTables. When a slicer filters out a value, the PivotTable hides that row by default. By changing the field settings, you can force the table (and thus the chart) to retain the category label.

1
Access Field Settings

Right-click on the row or column field in your PivotTable that corresponds to the chart's axis categories, and select 'Field Settings' from the context menu.

2
Navigate to Layout Options

In the Field Settings dialog box, click on the 'Layout & Print' tab.

3
Enable Empty Items

Check the box next to 'Show items with no data' and click 'OK' to apply the changes.

Enable 'Show Items with No Data' in PivotTable Options
Result: Your PivotChart will now display all categories on the axis, showing empty spaces or zero-height bars for the items filtered out by the slicer.
Efficient Data Visualization

Create and Manage Dynamic Charts with WPS Spreadsheet

WPS Office provides powerful data visualization tools. You can easily insert slicers, manage empty data points, and build interactive dashboards with full compatibility with Microsoft Excel formats.

  1. 1. Import Data: Open your dataset or existing Excel file in WPS Spreadsheet.
  2. 2. Create a PivotTable: Go to the 'Insert' tab and click 'PivotTable' to organize your raw data.
  3. 3. Insert Chart and Slicer: Insert a PivotChart from the 'Insert' menu and add a Slicer to dynamically filter your data.
  4. 4. Adjust Field Settings: Right-click the PivotTable fields, choose 'Field Settings', and check 'Show items with no data' to ensure chart axes remain intact when slicing.
Fully compatible with Microsoft Excel (.xlsx) charts, pivot tables, and slicers.Intuitive settings to manage empty cells and zero values in visualizations.Lightweight, fast, and completely free to use for everyday tasks.
QA img-9

Frequently Asked Questions

Why do my chart bars disappear when I click a slicer?

When a slicer filters out specific data points, the underlying PivotTable or data range hides those rows. If the chart is set to ignore hidden rows or missing data, the categories will automatically disappear from the visual layout.

Can I show a zero value instead of a gap in my standard Excel chart?

Yes. Right-click your chart, click 'Select Data', then click 'Hidden and Empty Cells'. Choose 'Zero' under the 'Show empty cells as' option to force the chart to plot a zero value.

Does 'Show items with no data' work for standard charts?

No, 'Show items with no data' is specifically a Field Setting feature for PivotTables and PivotCharts. For standard charts, you need to adjust the hidden and empty cell settings or use IF formulas in your data range to return a 0 instead of a blank.