Tableau Bar chart

Bar Chart in Tableau is handy to compare the data visually. For example, If we want to check the Sales by Color, we can use this. By seeing this Tableau bar chart, One can understand which color product is performing better compared to others.

In this article, we show you how to create a Bar Chart in Tableau and Stacked. Remember, creating it in 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, First, Drag and Drop the Color Dimension to Row Shelf and Sales Amount to Text option in Marks Card. Since Sales Amount is a Measure value, it will aggregate to default Sum.

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

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

Show Me Window To Select Bar

Once you choose that option from Show Me window, graph will be displayed.

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.

Swap the Tableau Bar Chart

Once you click on the Swap option, Our Horizontal is converted to Vertical Column.

Horizontal to Vertical Column

If you observe the above screenshot, it is providing a perfect result, but we are unable to identify the exact amount Sales of each color. To resolve these situations, We have to display the Data Labels.

Adding Data labels to Bar Chart in Tableau

To add data labels, Please drag and Drop the data Label values from Dimension or Measures Pane to 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 Measures region to Labels option

Add Data Labels to Tableau Bar Chart

Once you did, You can see the Data Labels in the Reports

Data Labels or Sales on Top of the Rectangles

Stacked Bar Charts in Tableau

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

Stacked Bar Charts in Tableau 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

Approach 2

Please select the Bar option from the drop-down list present in Marks Card

Bar Chart in Tableau 10

Next, Drop the Color from Dimension Region to Rows Shelf

Bar Chart in Tableau 11

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

Bar Chart in Tableau 12

Comments are closed.