Tableau Bar chart

A bar Chart in Tableau is handy for comparing the data visually. For example, we can use this if we want to check the Sales by Color. By seeing this Tableau bar chart, One can understand which color product performs better than others.

This article shows you how to create a Bar Chart in Tableau and Stacked. Remember, creating it on a desktop is very easy. If you drag a measure to Column Card and Dimension to RowCard, it will automatically generate the Bar Chart.

Create a Bar Chart in Tableau Example

To create this, Drag and Drop the Color Dimension to the Row Shelf and the Sales Amount to Text option in Marks Card. Since the Sales Amount is a Measure value, it will aggregate to the default Sum.

Next, we must change the Table report to the Bar chart using the Tableau Show Me option. Please expand the Show Me window and select the shown option from it.

Please visit how to add data Labels in the Reports article to understand the Tableau Data Source.

Show Me Window To Select

Once you choose that option from the Show Me window, a new graph will display, as shown below.

Bar Chart in Tableau 3

Tableau allows us to convert the Horizontal Bar to Vertical Column Chart. To do this, please click on the Swap option present in Toolbar.

Before this, please refer to the following links to check the remaining bar charts.

  1. Gradient Bar Chart
  2. Grouped Bar
  3. Progress Bar Chart
  4. Rounded Edges Bar Chart
  5. Side-by-Side Bar Chart
  6. Stacked Bar Chart
  7. How to Change Bar Chart Colors?
  8. How to Change the Bar Chart Size?
Swap the Rectangle bars

Once you click the Swap option, Our Horizontal converts to Vertical Column.

Tableau Horizontal Bar to Vertical Column Chart

Observing the above screenshot provides a perfect result, but we cannot identify the exact amount of Sales for each color. Therefore, we must display the Data Labels to resolve these situations.

Adding Data labels to Tableau Bar Chart

To add data labels, Please drag and Drop the data Label values from Dimension or Measures Pane to the Label option in Marks Card. In this example, We want to display the Sales Amount as Data labels, so Drag and Drop the Sales Amount from the Measures region to the Labels option.

Add Data Labels

Once you do, You can see the Data Labels in the Bar chart Reports.

Data Labels or Sales on Top of the Tableau Bar Chart

Tableau Bar Chart Second Approach

To create, Please select the Bar option from the drop-down list present in Marks Card.

Change the Marks Type from Automatic to Bar 10

Next, Drop the Color from Dimension Region to the Rows Shelf

Add Dimension to Rows Shelf 11

Next, Drag and Drop the Sales Amount from the Measures Region to Filed region. Since it is a Measure value, the Sales Amount will aggregate to the default Sum. And you can see the Tableau Bar chart.

Bar Chart in Tableau 12

Stacked Example

Creating Stacked is very easy compared to any other Business Intelligence tool. In this example, We want to show by the Country Region, so we are dragging the English Country Region Name from Dimension Region to Color Option in Marks Card.

Add Filed to Color Card 8

Once completed, You can see the Stacked Bar Chart. The Desktop allocates default colors for every region, but from the Marked Region, You can edit the colors by selecting the Edit Colors.. option.

Stacked Bar Charts in Tableau 9

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.

Comments are closed.