Tableau Line Chart – Create Line Chart in Tableau

1. Objective

In this tutorial for Tableau, we are going to learn about what Line charts in Tableau, create Tableau Line chart and how to work with it.
So, let us start.

Tableau Line Chart - Create Line Chart in Tableau

Tableau Line Chart – Create Line Chart in Tableau

2. Introduction to Tableau Line Chart

A line chart often represents trend over time, and typically requires numeric values plotted as lines over date-related fields.
In this recipe, we will create a time series graph (or line chart) that shows the number of floods over time. In addition, we will show the number of fatalities and represent this as the width of the line graph. This will enable us to see more obviously when the most flood-related fatalities occurred.
Let’s discuss How to create Tableau Bar Chart & Joining Data in Tableau

Tableau Line Chart - Building Line Chart in Tableau

Tableau Line Chart – Building Line Chart in Tableau

3. Building Line Chart in Tableau

The following are the steps to create a time series graph/Tableau Line chart:
i. From Dimensions, drag Began to Rows. Tableau will automatically choose the YEAR level for this date field.
ii. Right-click on the Null column heading in YEAR(Began), and select Exclude.

 Building Line Chart in Tableau

Step 2. Building Line Chart in Tableau

iii. From Measures, drag Number of Records to Columns.
iv. From Measures, drag Dead to Size in the Marks card.
v. Click on the top-right drop-down arrow of the size legend and choose Edit title….

Tableau Line Chart

Step 5. Tableau Line Chart

vi. Edit the title of the size legend to display Fatalities.
vii. From Measures, drag Dead to Color in the Marks card.
viii. Click on the top-right drop-down arrow of the color legend and choose Edit title….

Tableau Line Chart

Step 8. Tableau Line Chart

ix. Edit the title of the color legend to display Fatalities.
x. Click on Color on the Marks card. Under the Effects section, select the middle marker.

Tableau Line Chart

Step 10. Tableau Line Chart

xi. Click on Size on the Marks card. Drag the size control to the right to make the marks in your chart bigger.

Tableau Line Chart

Step 11. Tableau Line Chart

xii. Annotate your marks. In this sample, I have chosen to annotate 2003 (the year with the highest number of floods) and 1991, 2004, and 2008 (the years with the highest numbers of fatalities). To annotate the marks, you can right-click on the mark in your chart and select Annotate, and then Mark.

Tableau Line Chart

Step 12. Tableau Line Chart

The annotation for the year 2003 looks like the following:

Tableau Line Chart

Step 12. Tableau Line Chart

xiii. Hide the Began field label at the top of the chart by right-clicking it, and selecting Hide field label for columns.
xiv. Right-click on the Number of Records axis, and change the title to # Floods.

4. Conclusion

In this Tableau tutorial, we learned about Tableau line chart and how to create line charts in a tableau. Some of the important points we need to remember while making and working about them.
See Also- Tableau Download & Top Tableau Books 
For reference

Leave a Reply

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.