Articles in this section

How to Display Cumulative Totals in a Stacked Bar Chart

Published:
Updated:

This guide explains how to display cumulative totals in a stacked bar chart in Bold Reports. By adding a calculated total series and enabling data labels, you can display both the individual segment values and the cumulative total, improving the readability and interpretability of your chart.

Steps to Create and Customize the Chart

1. Create a Stacked Bar Chart

  1. Open the Bold Reports Designer.
  2. From the Widgets panel, drag and drop a Stacked Bar Chart onto the design canvas.
  3. Navigate to the Data pane and bind the required dataset to the chart.
    image.png

2. Add Data Series to the Chart

  1. Drag the required fields (for example, OnlineSales, RetailSales, and WholesaleSales) into the Y Values section.
  2. This creates the stacked segments for the chart.
    image.png

3. Create a Total Series

  1. Add a fourth series to the Y Values section.
  2. Click the expression button for the new series and enter the following expression to calculate the cumulative total:
    image.png
=Fields!OnlineSales.Value + Fields!RetailSales.Value + Fields!WholesaleSales.Value 

4. Enable Data Labels for Segments

  1. In Basic Settings, select Series from the dropdown list.
  2. Click the Edit (pencil) icon to open the Series Properties panel.
  3. Set Show Data Label to True.
  4. Repeat this process for each individual data series to display labels for all stacked segments.
    image.png

5. Configure the Total Series Label

  1. Select the Total series created in the previous step.
  2. Set Show Data Label to True.
  3. To display the total as a cumulative value rather than an additional bar segment, set the Fill Color to Transparent or adjust the Label Position to Bottom.
    image.png

    image.png

6. Preview the Report

  1. Save the report.
  2. Click Preview and verify that:
    • Each stacked segment displays its individual value.
    • The total label displays the cumulative value for the stacked bar.
      image.png

Download the sample report from here.

Related Articles

How to Format Date Labels in the Chart Category Axis in Bold Reports
How to Format Numbers in Bold Reports

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied