Mastering Horizontal Stacked Bar Charts in Tableau

Mississauga Jul 01, 2026

Creating a horizontal stacked bar chart in Tableau can be a powerful way to compare and contrast data across different categories. This visualization allows you to see the composition of each category and how they stack up against each other. Here's a step-by-step guide to help you create this chart.

Bar Charts | AnyChart Gallery
Bar Charts | AnyChart Gallery

Before we dive into the process, ensure you have your data prepared in Tableau. For a horizontal stacked bar chart, you'll need at least two dimensions (categories) and one measure (the values you want to compare).

a large poster with many different colors and shapes on it's sides, including the words bar chart
a large poster with many different colors and shapes on it's sides, including the words bar chart

Preparing Your Data

Start by connecting your data source in Tableau. For this example, let's assume you're using a simple dataset with 'Category', 'Sub-Category', and 'Sales' columns.

Tableau: Diverging bar chart
Tableau: Diverging bar chart

Your data should be structured like this:

Category Sub-Category Sales
Furniture Chairs 5000
Furniture Tables 3500
Office Supplies Paper 2000
Office Supplies Pens 1500
the top 10 visual bar chart designs
the top 10 visual bar chart designs

Creating the Chart

Once your data is connected, follow these steps to create your horizontal stacked bar chart:

1. **Drag and Drop**: Drag the 'Category' dimension to the Columns shelf, and the 'Sub-Category' dimension to the Rows shelf. Drag the 'Sales' measure to the Color Marks card.

the most popular social media platforms
the most popular social media platforms

2. **Switch to Bar Chart**: By default, Tableau creates a scatter plot. Right-click on the plot and select 'Change Mark Type' > 'Bar'.

3. **Stack the Bars**: Right-click on the 'Sub-Category' dimension in the Rows shelf and select 'Stack Mark'. This will stack the bars horizontally, allowing you to compare the 'Sales' within each 'Category'.

Customizing Your Chart

How to Create a Marimekko Chart in Tableau
How to Create a Marimekko Chart in Tableau

Now that you have your basic chart, you can customize it to fit your needs:

1. **Sorting**: Right-click on the 'Category' or 'Sub-Category' dimension in the relevant shelf and select 'Sort'. You can sort by data values, alphabetically, or manually.

Stacked Bar Chart Alternatives - Peltier Tech
Stacked Bar Chart Alternatives - Peltier Tech
Bar Graphs
Bar Graphs
Bar Chart Templates
Bar Chart Templates
Intel Is First to Share Detailed Pay Disparities. It’s Not Flattering.
Intel Is First to Share Detailed Pay Disparities. It’s Not Flattering.
Statistic infographic chart design template set for dark theme. Representing quantity. V
Statistic infographic chart design template set for dark theme. Representing quantity. V
How to add a horizontal line to the chart
How to add a horizontal line to the chart
how to make horizontal stacked bar chart in tableau
how to make horizontal stacked bar chart in tableau
Stacked Bar Chart Marketing Stats Template | Marketing Analytics Dashboard | Data Visualization Spreadsheet | Excel & Google Sheets |
Stacked Bar Chart Marketing Stats Template | Marketing Analytics Dashboard | Data Visualization Spreadsheet | Excel & Google Sheets |
Bar Graph
Bar Graph
Can We Improve on the Stacked Bar Chart? - PolicyViz
Can We Improve on the Stacked Bar Chart? - PolicyViz
ASP.NET MVC Charts & Graphs with Simple API | CanvasJS
ASP.NET MVC Charts & Graphs with Simple API | CanvasJS
How to Create a Radial Bar Chart in Excel - Easy Steps
How to Create a Radial Bar Chart in Excel - Easy Steps
Multiple Stacked Bar Chart Template | Data Visualization Spreadsheet | Comparison Dashboard Chart | Excel & Google Sheets |
Multiple Stacked Bar Chart Template | Data Visualization Spreadsheet | Comparison Dashboard Chart | Excel & Google Sheets |
an excel triangle bar chart with the title's image above it and below it
an excel triangle bar chart with the title's image above it and below it
Stacked Bar Chart | Data Viz Project
Stacked Bar Chart | Data Viz Project
Chart Gallery
Chart Gallery
Bar Chart
Bar Chart
Charts and Graphs Poster - Templates by Canva
Charts and Graphs Poster - Templates by Canva
Bar Graphs
Bar Graphs

2. **Formatting**: Click on the 'Format' tab in the top menu. Here, you can change the color palette, add borders, adjust labels, and more.

3. **Adding Titles**: Drag the 'Category' dimension from the Columns shelf to the 'Columns' shelf on the left. This will create a title for your x-axis. Do the same for the 'Sub-Category' dimension to create a title for your y-axis.

Creating a horizontal stacked bar chart in Tableau can help you gain valuable insights from your data. With a bit of customization, you can create a compelling and informative visualization that tells a story. Happy data exploring!