Chapter 5. Lines

In this chapter, we will focus on using the Line mark type within the Marks card. Line charts are very useful for looking at trends over time. A line chart is mainly used when you are comparing data over time.

Dates can be split into Discrete and Continuous. As mentioned in the introduction, a discrete field will create headers, whereas a continuous field will create an axis. When using Dates, a discrete date will be using an individual date part, which is a standalone element like Months or Weeks. When using continuous dates, it will return the date value. When looking at Months, Tableau will return the month and the year instead of just the month.

5.1 Line Charts

Problem

You want to see the sales trend over time, split by year and quarter.

Get Tableau Desktop Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.