# Tableau Stacked Bar Chart | Stacked Bar Graph

## 1. Objective

In this tutorial for Tableau, we are going to learn about Tableau stacked bar chart. We learn the stepwise procedure to create a Stacked bar chart in tableau with an example.
So, let us start with Tableau Stacked Bar Chart.

Tableau Stacked Bar Chart

## 2. Introduction to Tableau Stacked Bar Chart

Stacked bar diagrams, similar to general Stacked bar graphs, speak to numeric esteems as sectioned bars, and each bar is a particular, unmistakable class. The segments in the bar that are stacked on top of each other represent related values, and the total length of the bar represents the cumulative total of the related values for that category.
Refer this link to know about Tableau Line Chart

Tableau Stacked Bar Chart

## 3. How to Create Stacked Bar Chart in Tableau

The following are the steps to create Tableau stacked bar chart:
i. From Dimensions, drag Year to Rows.
ii. From Measures, drag Worldwide Gross Amount to Columns.
Read about Tableau Area Chart in detail
iii. Right-click on the Worldwide Gross Amount axis and select Format…. The original data sidebar will now be replaced by the format sidebar for the axis.

Step 3. Tableau Stacked Bar Chart

iv. Under the Scale section, change the Numbers format to Currency (Custom), with 1 decimal place, and unit in Billions (B).

Step 4. Tableau Stacked Bar Chart

v. Hover your mouse pointer over the Year column header, and click twice on the sort icon that appears. The first click sorts the years in ascending order. The second click will sort the years in descending order, with the latest year at the top and the earliest year at the bottom.
Read about Tableau Dealing with Data Quality Problems.
vi. Right-click on the Worldwide Gross Amount axis and select Edit Axis.
vii. Under the Tick Marks tab in the Major tick marks section, select Fixed and set it for every 500,000,000 units.

Step 7. Tableau Stacked Bar Chart

viii. From Dimensions, drag Genre to Color in the Marks card. This will create the stacked bar.
ix. Click on the drop-down arrow beside the color legend and choose Edit Colors….
x. Choose the Color Blind 10 palette and click on Assign Palette. Click on OK when done.
xi. Adjust the width and height of the bars. You can do this by moving your mouse pointer to the column or row edge of a year until you see a double-headed arrow. The left-right double-headed arrow allows you to adjust the width, and the up-down double-headed arrow allows you to adjust the height.
Let’s read about How to Save, Reorder and Delete Worksheet
xii. From Dimensions, right-click and drag Film to Detail in the Marks card. This will open a window providing options on what exact detail needs to be added to the card.
xiii. Choose CNTD(Film), which means the number of unique films. CNTD is the Count Distinct function.

Step 13. Tableau Stacked Bar Chart

xiv. Click on Tooltip in the Marks cards, and add the following tooltip. Note that data points that you have already used in your worksheet (or viz) can be inserted into the tooltip.

Step 14. Tableau Stacked Bar Chart

## 5. Conclusion

In this tutorial, We learned about Tableau bar stack chart, step by step creates a Stacked bar chart in a tableau. In the next tutorial, we are going to learn about Tableau bar charts, thus covering all the charts of Tableau. If you have any query, feel free to ask in a comment section.