How to create Bar, Line and Pie Chart in Tableau

Last updated on Oct 25 2021
Ramnath Swami

Table of Contents

How to create Bar, Line and Pie Chart in Tableau

In Tableau, there are various types of bar chart that can be created by using the dimensions and measures.
A bar chart represents the data in rectangular bars. Tableau automatically produces a bar chart when you drag a dimension to the Row shelf and measure to the Column shelf.
The bar chart option present in the “Show Me” button. If the data is not appropriate for the bar chart, then this option will be automatically blocked out.
A bar chart can compare the data in different categories. The height of the bar represents the measured value of the category. It can be described as vertical and horizontal type bar charts. The procedure to create a bar chart is given below through an example.
For example, consider a data source such as Sample-Superstore and its dimensions and measures.
Step1: First, go to the worksheet and,
Step2: Drag the Category field into the column shelf.
Step3: Drag Profit field into the row shelf.
Step4: By default, it creates the bar chart shown in the below screenshot.

tableau 91
tableau

Bar Chart with Color Range

You can apply colors to the bars based on their ranges. The longer bars get darker shades, and the smaller bars get the lighter shades. Let’s see step by steps,
Step1: Drag the Category field into the column shelf.
Step2: Drag Profit field into the row shelf.
Step3: Also, drag the Profit field to the Color pane under the Marks Pane and, it produces a different color for negative bars.

tableau 92
tableau

Stacked Bar Chart

You can also add one more dimension to the above bar chart to produce a stacked bar chart that shows different colors in each bar.
Step1: Drag the Segment field.
Step2: And drop the Segment field into Color pane.
The below-stacked chart appears that shows the distribution of each segment in each bar.

tableau 93
tableau

Tableau Line Chart

A line Chart can compare the data over different periods. A series of dots create a line chart. These dots represent the measured values in each period.
measure and a dimension are taken two axes of the chart area in the line chart. The pair of values for each observation becomes a point. After joining all these points would become a line that shows the variation between the dimensions and measures.
The procedure to create a line graph is shown step by step below.
For example, consider a data source such as Sample-Superstore and its dimensions and measures.
Step1: Select one dimension and one measure to create a simple line chart.
1) Drag the dimension Order Date into Columns Shelf.
2) And Sales into the Rows shelf.
3) It creates the line chart by default or Chooses the Line chart from the “Show Me” button.
You will view the following line chart that shows the variation of Sales for different Order Date showing in the below screenshot.

tableau 94
tableau

________________________________________

Multiple Measure Line Chart

You can use one dimension with two or more measures in a single line chart. It produces various line charts in one pane. Each pane represents the variation between a dimension and the measures.
Step1: Drag the dimension Order Date into Columns Shelf.
Step2: Drag measures Sales and Discount into the Rows shelf.

tableau 95
tableau

Line Chart with Label

Each of the points that creates the line chart are labeled to make the values of the measure visible.
Step1: Drop another measure Profit ratio into the “Labels” pane in the “Marks” card.
Step2: Choose average as the aggregation, and you will view the below chart showing the labels.

 

tableau 96
tableau

Tableau Pie Chart

The pie chart shows the segment-wise data. It can show the contribution of measures over different members in a dimension. The angle of pie determines the measured value. Different colors can be assigned to pie to represent the members in a dimension.
A pie chart represents the data in the form of the circle slice with different size and colors. These slices are labeled, and the numbers corresponding to each slice is also represented in the chart.
You select the pie chart option from the “Show Me” pane to create a pie chart.
For example, consider a data source such as sample-superstore and Choose one dimension and one measure to create a simple pie chart.
Step1: Go to the worksheet.
Step2: Drag the dimension Segment and drop into the Color and Label pane.
Step3: Drag the measured Profit and drop into the Size pane.
Step4: Choose the chart type from “Show Me” pane.
The following chart will appear that shows the three segments in different colors with labels.

tableau 97
tableau

So, this brings us to the end of blog. This Tecklearn ‘How to create Bar, Line and Pie Chart in Tableau’ blog helps you with commonly asked questions if you are looking out for a job in Tableau Desktop. If you wish to learn Tableau Desktop and build a career in Business Intelligence domain, then check out our interactive, Tableau Desktop Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

Tableau Desktop

Tableau Desktop Training

About the Course

Tecklearn’s Tableau Desktop Training teach you how to transform raw data into interactive and shareable dashboards using Tableau. Our Tableau Course covers the necessary analytical skills to Advanced data visualizations by incorporating real-world use-case scenarios, labs, and exercises. Some of the topics included are Data Blending, Data Mapping, Graphs, creation of charts, and LOD expression by using different versions of Tableau, such as Tableau Desktop, Tableau Reader, and Tableau Public.

Why Should you take Tableau Desktop Training?

• The average salary of a Tableau Professional ranges between $108,697 to $158,000 per annum -Indeed.com.
• Tableau has been positioned as a Leader in the Gartner Magic Quadrant for Analytics and Business Intelligence Platforms – Gartner.com.
• Fidelity Investments, Capgemini, EY, Deloitte, EY, JP Morgan, Verizon, Facebook, Dell, General Motors, KPMG, Bank of America and 40,000 other MNCs worldwide across industries use Tableau.

What you will Learn in this Course?

Understanding Tableau
• Why Tableau
• Tableau Product Platforms
• Tableau Architecture
• Tableau Interface
Data Connection with Tableau Desktop
• Features of Tableau Desktop
• Connect to data from File and Database
• Types of Connections
• Data Blending
• Joins and Unions
• Tableau Desktop User Interface
• Basic project: Create a workbook and publish it on Tableau Online
Basic Visual Analytics
• Visual Analytics
• Basic Charts: Bar Chart, Line Chart, and Pie Chart
• Hierarchies
• Data Granularity
• Highlighting
• Sorting
• Filtering
• Grouping
• Sets
Advanced Visual Analytics
• Parameters
• Tool tips
• Trend lines
• Reference lines
• Forecasting
• Clustering
Calculations in Tableau
• Calculated Fields
• Numeric, String, Data, Logical, Addressing and Partitioning
• Table Calculations
Level of Detail (LOD’s) Calculations
Advanced Charts in Tableau
• Box and Whisker’s Plot
• Bullet Chart
• Bar in Bar Chart
• Gantt Chart
• Waterfall Chart
• Pareto Chart
• Control Chart
• Funnel Chart
• Bump Chart
Parameters
• What If Scenarios
• Parameter in CF (KPI control)
• Parameter in Filter (Top N)
• Parameter in reference line
Dashboards and Stories
• Introduction to Dashboards
• The Dashboard Interface
• Dashboard Objects
• Building a Dashboard
• Dashboard Layouts and Formatting
• Interactive Dashboards with actions
• Designing Dashboards for devices
• Story Points
Data Security in Tableau
Optimizations tips and tricks
Interacting with Tableau Server
Working with Tableau JavaScript API

Got a question for us? Please mention it in the comments section and we will get back to you.

0 responses on "How to create Bar, Line and Pie Chart in Tableau"

Leave a Message

Your email address will not be published. Required fields are marked *