KNOWLEDGE BASE

Creating Sparklines


Published: 24 Apr 2017
Last Modified Date: 24 Apr 2017

Question

How to create a sparkline view. 

Environment

Tableau Desktop

Answer

The example uses the Superstore sample to create a sparkline that shows sales and profit for various product categories over a long period.

Create the View

  1. From the Dimensions pane, drag Order Date to the Columns shelf.
    1. On the Columns shelf, right-click Order Date and select the second instance of Day.
      Alternatively, if you want to view the profits over four years on a continuous axis, select the second instance of Month.

  2. From the Dimensions pane, drag Category to the Rows shelf.
  3. From the Measures pane, drag Sales to the Rows shelf.
  4. On the Columns shelf, right-click Month and cancel the selection for Show Header.
    1. On the Rows shelf, do the same for Profit.
  5. From the Measures pane, drag Profit to the Colors shelf.
To view the above steps in action, see the video below: 

 

Additional Information

A sparkline chart is characterized by its small size and data density. Typically displayed without axes or coordinates, sparklines present trends and variations associated with some measurement, in a simple and condensed way. Whereas the typical chart is designed to show as much data as possible, sparklines are intended to be succinct.
Did this article resolve the issue?