Creating area charts

An area chart is an extension of a line chart. The area chart shows the line of the measure but fills the area below the line to emphasize on the value of the measure. A special case of area chart is a stacked area chart, which shows a line per measure and the area between the lines is filled. Tableau's implementation of area charts uses one date variable and one or more measures.

Getting ready

Let's use the sample file Sample – Superstore Sales (Excel). Open a new worksheet and select Sample – Superstore Sales (Excel) as the data source.

How to do it...

Once the data is loaded on the new worksheet, perform the following steps to create an area chart:

  1. Click on the Show Me button to bring the Show Me toolbar on the screen.
  2. Select Order Date from Dimensions and Order Quantity from Measures by clicking and holding the Ctrl key.
  3. Click on Area charts (continuous) from the Show Me toolbar.
  4. Drag-and-drop Order Date into the Columns shelf next to YEAR(Order Date).
  5. Expand YEAR(Order Date), seen on the right-hand side, by clicking on the plus sign.
  6. Drag-and-drop Region from Dimensions into the the Rows shelf to the left of SUM(Order Quantity). The chart should look like the one in the following screenshot:
    How to do it...

How it works…

When we added Order Date for the first time, Tableau, by default, aggregated the date field by year; therefore, we added Order Date again to create aggregation by quarter of the Order Date. We also added Region to create facets on the regions that provide trends of order quantity over time.

There's more...

A blog post by visual.ly, an information graphics company, discusses the key differences between line charts and area charts. You can find this post at http://blog.visual.ly/line-vs-area-charts/.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset