Stacked bar
Use to show the relative value of different grouped categories or to show ranked values.
A stacked bar chart shows data represented by horizontal rectangular bars with comparative values stacked on top of each other.
The length of the rectangle is proportional to the value it represents. Each group is represented by two or more horizontal bars.
When to use this tool
Use this chart to show the relative value of different grouped categories or to show ranked values.
If some of your categories contain negative values, use a standard bar chart instead.
Example
In this example, we want to show revenue for different products in two locations.
Each bar shows the difference in revenue between both locations for each product. But we can also see the total revenue for each product by using this chart.
![Bar_stacked_xAxis.png](../image/uuid-e48db334-877d-4abb-45b2-53d48e799c19.png)