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 bubble chart


Bubble charts present data using circles of different sizes and colors. The sizes and colors of circles, or bubbles, vary based on the values they represent. A larger and/or darker circle often represents items or categories with higher values.

In this recipe, we will create a bubble chart that shows the countries with the highest populations in 2015.

Getting ready

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

How to do it...

The following are the steps to create a bubble chart:

  1. Change the mark type to Circle in the Marks card.

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

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

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

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

  6. From Dimensions, drag Country to Label in the Marks card.

  7. From Measures, drag Population to Label in the Marks card.

  8. Right-click on the SUM(Population) pill in the Label card, and select Format. This will open a format pane that temporarily replaces your data side bar.

  9. In the Format side pane, under the Pane tab in Defaults section, choose Number (Custom) with 1 decimal place, and Millions (M) as unit.

  10. Right-click on the Country pill in the Label card and select Sort.

  11. Choose an Ascending sort order by Sum of Population.

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

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

  14. Click on the drop-down arrow beside the color legend again. This time choose Edit colors….

  15. Choose the Color Blind 10 palette.

How it works...

A bubble chart typically shows information in circles of varying colors and sizes. Creating a bubble chart in Tableau requires changing the mark type to Circle. A measure is typically placed in Size, as well as another dimension in either Color, Label, or Detail (or any combination thereof).

In this recipe, we placed the Population measure onto Size, created different bubbles for every country by placing Country in Label, and color the circles by Region.

There's more...

If the pie chart gets a bad reputation, bubbles charts do too (maybe more). If we humans cannot compare angles with ease, we are also generally not very good at comparing diameter and circumference. Is that circle 15% bigger than the previous circle?

Most would argue that bar charts would be more effective than bubble charts, and I mostly agree. However, as with the pie chart, I think bubble charts can be effective—depending on the intent and audience.

In my courses, I ask students to present their work to the rest of the class. The goals of the presentation are to present their findings, as well as to engage the audience. One of the charts that frequently captures the attention of the audience is the bubble chart. Sometimes this chart also garners the most questions—therefore more engagement.

I would also argue that typically a single chart is not a be-all and end-all—typically we complement this with other charts, dashboards, and storytelling. There is nothing that stops us from starting our story with a bubble chart to get the audience's initial attention, and once we have their attention, proceed to more details using dependable bar and line charts.

The storytelling piece is also key. We have to be effective storytellers—our charts are simply our props. With effective storytelling, any chart can be effective and exciting.

Note

If you haven't seen Hans Rosling's TED talk on The best stats you've ever seen yet, you are missing out. He is using bubbles that move—aka dancing bubbles!

https://www.ted.com/talks/hans_rosling_shows_the_best_stats_you_ve_ever_seen?language=en

However, it's not the chart that makes the presentation, it's the storyteller that makes this presentation impactful and unforgettable.

See also

  • Please refer to the Creating a pie chart recipe in this chapter