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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access