O'Reilly logo

Tableau Cookbook – Recipes for Data Visualization by Shweta Sankhe-Savale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Line chart

Another frequently used chart type is the Line chart, which is primarily used to show trends over a period of time. This chart type helps us focus on the peaks and dips in the values over a period of time.

The line chart in Tableau uses the Line mark type.

Getting ready

To understand this chart type better, let's create a Line chart to show profit for all the months over the last 4 years.

How to do it…

  1. Let us create a new sheet and rename it to Line chart.
  2. Next, we will drag Order Date from the Dimensions pane and drop into the Columns shelf.
  3. Drag Profit from the Measures pane and drop it into the Rows shelf. Refer to the following image:
  4. Next, we will click on the dropdown for the Blue pill in the Rows shelf, which says Year(Order ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required