logo
search
Chart & Visualization Issues

How to Display Totals on a Stacked Bar Chart & Export to PowerPoint

Olivia MillerOlivia Miller Sep 25, 2026 874 views

Question details

The user wants to display overall total quantities at the top of each stacked bar in a chart and needs a method to move or export the chart into a PowerPoint presentation.

How to Display Totals on a Stacked Bar Chart and Export to PowerPoint
Product
Spreadsheet and Presentation Software
Device & OS
not provided
Scenario
Creating detailed data visualizations and automating the export of these charts to a presentation slide.
Observed behavior
Stacked bar charts typically display values for individual segments rather than the overall total, and exporting charts from a database or spreadsheet to a presentation often requires manual copy-pasting or VBA workarounds.
Before you start

Ensure your chart data is organized properly, and calculate the overall totals for each stacked bar in a new column or row before modifying your chart.

Solution 1Recommended

Use a Helper Series to Display Totals

Add an invisible data series to your stacked bar chart that contains the yearly or category totals and displays them as data labels.

Since most spreadsheet programs do not have a built-in 'show total' button for stacked charts, you can use a helper series. This involves adding the totals as an extra layer on your chart, displaying its labels, and hiding the actual bars or lines of that series.

1
Calculate the Totals

In your data source, add a new column or row named 'Total' and use the SUM function to calculate the total for each stacked category.

2
Add the Helper Series to the Chart

Right-click your stacked bar chart and select 'Select Data'. Add a new data series using the 'Total' column you just created.

3
Change the Helper Series Chart Type

Right-click the newly added total series on the chart, select 'Change Series Chart Type', and change it to a Line chart or a Scatter plot so it sits at the top of your stacked bars.

4
Add Data Labels

Select the new helper series, click the 'Chart Elements' plus icon, and check 'Data Labels' to display the total numbers.

5
Hide the Helper Series Graphic

Right-click the helper series, select 'Format Data Series', and set both the Fill color and Line color to 'No Fill' and 'No Line'. Now, only the total labels will remain visible.

Use a Helper Series to Display Totals
Automatic Updates: Because the total labels are tied to a formula in your data source, they will automatically update whenever your underlying data changes.
Seamless Chart Integration

Create and Export Charts Easily with WPS Office

WPS Office provides a highly integrated suite where creating stacked bar charts with totals and exporting them to a presentation is fast and straightforward, completely eliminating the need for complex VBA code.

  1. 1. Create Your Chart in WPS Spreadsheet: Open your data in WPS Spreadsheet, highlight your data including a totals column, and insert a stacked bar chart.
  2. 2. Format the Totals: Change the total series to a line chart, add data labels, and set the line to 'No Line' to cleanly display your totals at the top.
  3. 3. Copy the Chart: Right-click the finished chart in WPS Spreadsheet and select 'Copy', or simply press Ctrl+C.
  4. 4. Paste into WPS Presentation: Open WPS Presentation, navigate to your desired slide, right-click, and choose 'Paste' (or press Ctrl+V) to insert your fully formatted chart.
Easily add data labels and customize stacked bar chartsSeamlessly copy and paste charts between WPS Spreadsheet and WPS PresentationHighly compatible with Microsoft Excel (.xlsx) and PowerPoint (.pptx) formatsFree, lightweight, and user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Can I display totals on a stacked bar chart without using a helper series?

By default, spreadsheet applications display data labels for individual segments of a stacked chart rather than the cumulative total. Using a helper series is the standard and most reliable method to display overall totals at the top of the bars.

How do I make the helper series completely invisible?

Click on the helper series in your chart to select it. Then, open the Format Data Series pane and set both the 'Fill' and 'Border' (or 'Line') options to 'No Fill' and 'No Line'. Only the data labels you added will remain visible.

Why does my VBA code fail to copy the chart to PowerPoint?

This usually happens if the chart name in the code does not match the actual chart object name on your sheet, or if the PowerPoint Object Library reference is not enabled in your VBA editor. Double-check that 'CHART_NAME' is replaced with the correct identifier.

Will my copied chart update automatically in the presentation if the original data changes?

If you use a simple Copy and Paste, the chart is usually pasted as a static object or embedded workbook. To make it update automatically, use 'Paste Special' and select 'Paste Link' when moving the chart into your presentation.