Tableau Line Chart – Create Line Chart in Tableau
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.
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
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.
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….
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….
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.
xi. Click on Size on the Marks card. Drag the size control to the right to make the marks in your chart bigger.
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.
The annotation for the year 2003 looks like the following:
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.
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