Stacked Bar Chart

Also known as Stacked Column Graph

1. What is a Stacked Bar chart?

A stacked bar chart shows the composition and comparison between values across categories. It is a form of bar chart that is a series of columns stacked horizontally, next to each other. The length of each series is determined by the value of each data point.

When to use a Stacked Bar Chart?

A stacked bar chart is ideal for:

  • Data that is segmented and added to a whole

  • Dimension with long labels

  • Comparision across the different bars

  • Compare the individual category of one category across the different bars

  • Compare the size of different categories if they're very different

2. How to build a Stacked Bar chart with example

The stacked bar chart effectively displays the sales revenue over time, presenting a breakdown by item types through stacked bars, enabling businesses to assess the contribution of each item type to the total revenue across different time periods, facilitating a comprehensive analysis of the sales performance of various product categories over time.

  1. Click Click here to add your first chart

  2. In the menu, select Stacked Bar to create a stacked bar chart

3. Stacked Bar Chart Config

  1. Select the database you use to create suggested in the list

  2. Choose the table containing the data you use to create, then it will show you the list of fields included in the table

  3. Drag/drop or select the X-Axis value

  4. Drag/drop or select the Y-Axis value

  5. Drag/drop or select the Legend properties (optional)

  6. Drag/drop or select the Breakdown value (optional)

  7. Drag/drop or select the Sorting field to sort out the data in the chart (optional)

  8. Drag/drop or select the Filters field to emphasize a specific data (optional)

  9. You can see the visualization of your chart on the left side and select Settings to change the element’s settings

  • TITLE & SUBTITLE

You can change the title of the chart, choose the font, color and size of the name. You can also add the subtitle and change its format.

  • DISPLAY

You can change each stacked bar's display name.

  • STACK

Stacked bars can be shown in Value or Percentage style. You can also group each stacked bar by inputting the number of bars you want to group.

  • LEGEND

You can change the legend position (top, bottom, middle), input the name, choose the font, color and size of the name.

  • X AXIS

When you turn on the X Axis, you can input the Prefix, Postfix and change their format. X Axix title can also be added and change format too.

  • Y AXIS

When you turn on the X Axis, you can input the Prefix, Postfix and change their format. X Axix title can also be added and change format too. If you turn on Gridlines, you can change the size and the display of the Gridlines (solid, dash, dot,...).

  • DATA COLOR

Data color can be set auto or you can choose your favorite colors.

  • DATA LABEL

If you turn the label on, you can choose its style to perform (percent, value, raw), choose the font, color and size of the label and its position.

  • BACKGROUND

You can change the background color of the chart.

  • TOOLTIP

When you hover over a stacked bar of the chart, a text box appears to display information about the data of that bar. You can change the text color, font, and background.

  • OTHER

Change the display unit, precision, and other functions

10. After building the chart visualization, click Add to create your chart.

11. Your chart will show up along with actions like sharing, editing, etc.

We hope that the above instructions will be useful to you. Let's have a look at our other articles to learn more about using other charts in data visualization with Rocket.BI.

Last updated