How to do it...

In this section, we use UFO sighting data to make Sparklines. Open the Sparkline packaged workbook to follow along. To follow along, use nuforc_events.csv and Sparklines.twbx.

  1. To begin, move the event date to Columns and shape to Rows. Because we have several years of data, we're filtering the dataset to 2010-2016 and displaying quarters, as follows:

We use the green pill for QUARTER(Event Date) as opposed to the blue one because, in this scenario, the date is continuous rather than a discrete value. In other words, we want date to appear as a value on an axis rather than a value to be grouped.
  1. Move the measure to the

Get Tableau 2019.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.