Book Image

Tableau 10 Business Intelligence Cookbook

By : Donabel Santos, Paul Banoub
Book Image

Tableau 10 Business Intelligence Cookbook

By: Donabel Santos, Paul Banoub

Overview of this book

Tableau is a software tool that can speed up data analysis through its rich visualization capabilities, and help uncover insights for better and smarter decision making. This book is for the business, technology, data and analytics professionals who use and analyze data and data-driven approaches to support business operations and strategic initiatives in their organizations. This book provides easy-to-follow recipes to get the reader up and running with Tableau 10, and covers basic to advanced use cases and scenarios. The book starts with building basic charts in Tableau and moves on to building more complex charts by incorporating different Tableau features and interactivity components. There is an entire chapter dedicated to dashboard techniques and best practices. A number of recipes specifically for geospatial visualization, analytics, and data preparation are also covered. By the end of this book, you’ll have gained confidence and competence to analyze and communicate data and insights more efficiently and effectively by creating compelling interactive charts, dashboards, and stories in Tableau.
Table of Contents (17 chapters)
Tableau 10 Business Intelligence Cookbook
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
Index

Creating a tree map


Tree maps represent part-to-whole and hierarchical relationships using a series of rectangles. The sizes and colors of rectangles will vary based on the values they represent. Typically, the larger rectangles, or rectangles with most concentrated colors, depict the highest values.

In this recipe, we will represent the 2015 world population as a tree map.

Getting ready

To follow this recipe, open B05527_01 – STARTER.twbx. Use the worksheet called Tree Map, and connect to the Data (Modified Gapminder Population) data source.

How to do it...

The following are the steps to create the population tree map:

  1. From Dimensions, drag Year to the Filter shelf. This will open a new window for the filtering options.

  2. Under the General tab, while Select from list radio button option is selected, type 2015 in the search text box to find this value from the list of years, and check it.

  3. From Measures, drag Population to Size in the Marks card.

  4. From Dimensions, drag Region to Color in the Marks card.

  5. From Dimensions, drag Country to Text in the Marks card.

  6. From Measures, drag Population to Text in the Marks card.

  7. Click on the drop-down arrow beside the color legend card and choose Edit colors….

  8. Choose the Color Blind 10 palette and click on Assign Palette. Click on OK when done.

  9. Click on Label in the Marks card, and select the ellipsis button under Label Appearance to modify the style of the text.

  10. Adjust the label so Country is shown with a larger font, and population appears underneath it with a smaller font.

How it works...

A tree map allows us to present a part-to-whole relationship, just like a pie chart, but by subdividing a rectangle into smaller areas rather than subdividing a circle into different angled slices.

In Tableau, when you place a measure onto Size and a dimension onto either Color, Label, or Detail—or any combination thereof—the rectangle is broken down into smaller rectangles.

In this scenario, Tableau actually automatically assigns the Square mark. Although under Marks you will see Automatic, the icon refers to a Square. If you leave this as Automatic, or change the Mark explicitly to Square, you will get the same tree map.

There's more...

Pie charts get a bad reputation because angles and slices are not easy to compare. Bubble charts are also hard to compare, because it is also hard to compare diameters and circumferences. Guess what, tree maps also fall into this same category. It is also not easy nor natural for us humans to discern and compare one area to another. Can we tell how much bigger or smaller one rectangle is compared to another? However, as with the other charts, with the right intent, audience, and story, this could be an effective chart—either by itself, or as a complementary chart to another.

See also

  • Please refer to the Creating a Pie Chart recipe in this chapter