How to Create a Bar Chart in Tableau

Spread the love

In this post, you will learn how to create a Bar chart in tableau.

Bar Chart –

To create a bar chart in tableau, we will use the sample superstore data. So open Tableau and click on the sample superstore data under Saved data sources.

Let’s say that we want to shows sales by each category. To do that drag and drop the category variable to the columns shelf and drop the sales variable to Rows shelf.

We have successfully created a Simple Bar chart. Let’s customize it to make it better.

Changing colors of the Bars –

To change the colors of the bars, click on Color inside the Marks and select the color that you like.

You can also change the size of the bars by clicking on the size option in the Marks.

Adding Bar labels –

You can also add bar labels using the Label in Marks. Click on Label and select show mark labels.

Rearrange Bars –

To rearrange bars in ascending and descending order, use the options in the toolbar at the top of the canvas.

Bars in Ascending –

Bars in Descending –

Adding another Measure –

If you want to add another measure to the view, you can do that by dropping the measure on the color in the Marks card. This will add a color legend on the top right corner.

Let’s drag and drop the profit on color. The lighter blue color will show low profit and darker blue color will show higher profit.

We can see that we have less profit in furniture compared to the other two categories.

Adding another Dimension –

If you look at the superstore data, you can see that along with the category, we also have a sub-category field. You can also add this dimension to the view to segment the data.

Drag and drop the sub-category to the columns.

Earlier we saw that furniture category has lowest profits. But now we can also see which sub category of furniture has the lowest profit. We can see that profits in selling tables is very low compared to other sub-categories.

Horizontal Bar Chart –

You can transform a vertical bar chart to horizontal by just clicking on the option in the toolbar at the top shown below.

We will get into more details about creating horizontal , stacked and grouped bar chart in our upcoming posts. Please subscribe to our blog below to get the updates.

Rating: 1 out of 5.

Leave a Reply