Bar Chart in Tableau – The Art of Portraying Data
In this Tableau tutorial, we are going to learn about the most basic type of chart that we use not only in BI but in general statistics as well. Here, we will begin by learning some basics about the bar chart and then move on to stepwise learning of how to create different types of bar charts in Tableau.
Keeping you updated with latest technology trends, Join DataFlair on Telegram
What is Bar Chart?
A bar chart or graph is used to represent category wise data of a dataset. The length of the bars is proportional to the value that each category represents. This gives instant insight into the data pictorially. In Tableau, we can create several variants like a simple vertical bar graph (also known as a line graph), segmented bar graph, stacked bar graph and side by side bar chart. In the next section, we will learn how to represent our data in a bar chart using color schemes and other options.
Previously, we learned about the creation of a Bump Chart in Tableau to compare the two-dimension values of their data.
Now, let’s learn the steps for the creation of a bar chart in tableau.
How to Create a Bar Chart in Tableau?
Follow the steps given below to create bar charts in your Tableau software:
1. Vertical Bar Chart
This creates a normal bar graph showing total sales for each year.
This divides each bar (representing a year) into four colored sections which represent sales in four regions; Central, East, South, and West.
Grab the opportunity to represent the accumulated sales data through the Tableau Area Chart.
2. Segmented Bar Chart
We can also create a segmented bar chart in Tableau. For this, we just need to add one more dimension to the Rows section. Like we have added the Segment field into the Rows section along with the SUM(Sales) measure.
Tableau offers a lot of other formatting options such as adding reference lines. To add a reference line, we go to Analytics pane and select, for instance, the Average line.
If you have any doubts or confusion in the Tableau Bar Chart article till now, mention in the comment section.
We can also create a stacked bar chart where a single bar is divided into different sections that are stacked one upon the other. The size of each stacked section depends on the value that the section is representing. Also, each section in a stack is assigned a unique color.
4. Side-by-Side Bar Chart
Another way of showing multiple values corresponding to a single dimension is by creating a side-by-side bar chart. In a side by side chart, all the values corresponding to a dimension are placed side by side instead of getting stacked upon one another.
As you can see in the screenshot below, there are separate bars showing total sales for each brand for each year in separate sections. That is, we have a set of bars for the year 2016, another for 2017, 2018 and 2019. Such bar charts provide information and insight in great detail for analysis.
In this tutorial, we learned about the bar chart and its variants in Tableau. We learned how to create a simple vertical bar chart, segmented bar chart, stacked bar chart, and adjacent or side by side bar chart. Also, you can create a horizontal bar chart, scatter plot and many other types by exploring more options given in Tableau.
I hope that you find our Tableau Bar Chart article helpful. If you have any questions regarding this article, you can mention them below in the comment section.