Open In App
Related Articles

Stacked Bars in Tableau

Improve Article
Save Article
Like Article

In this article, we will learn how to draw a stacked bar graph in tableau worksheet to do further operations. 

Tableau — a brief note

Tableau is a very powerful data visualization tool that can be used by data analysts, scientists, statisticians, etc. to visualize the data and get a clear opinion based on the data analysis. Tableau is very famous as it can take in data and produce the required data visualization output in a very short time.

Stacked bars

The stacked bars are nothing but, the bar charts with segments inside. These internal segments add detail to the fields marked as bars and are differentiated by colors. It is mostly used to compare categorical data.

Dataset used in the given examples is Dataset.

For this, we have to import the dataset first. Follow the steps :

  1. Open Tableau tool and connect a dataset into it.
  2. Drag and drop the one sheet of connected dataset.
  3. Click on sheet1 to open the tableau worksheet.
  4. On clicking Sheet1 you will get whole dataset attributes on left side and a worksheet for work.

To draw a stacked bar graph you have to select minimum three attributes( one in row and two in column) by dragging and dropping then select the chart option as stacked bar graph.

Example 1:

You can use the following steps to draw a stacked bar graph.

  • Drag and drop the fields in rows and columns.
  • Choose the chart as stacked bar graph.

Example 2:

  • Drag and drop the fields in rows and  columns.
  • Choose the chart as stacked bar graph.
  • Change the color by choosing a new palette.
  • Apply the border marks.

Example 3:

  • Drag and drop the multiple fields in rows and columns.
  • Choose the chart as a stacked bar graph.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 29 Jul, 2021
Like Article
Save Article
Similar Reads