Showing the power of data visualization

Dashboards rely on the power of visualization in order to let people see the message of the data to make effective decisions. How can you show the power of a dashboard when compared to a crosstab table?

In this recipe, we will see how a data visualization can have more impact than a straightforward crosstab. We will make a crosstab table in Tableau and then turn it into a data visualization to see the impact in action!

Understanding your data is an essential part of data visualization, regardless of the technology you are using. Tableau can help you to understand your data by automatically distinguishing between measures and dimensions. How do you know which are which? Look at the title of a report or dashboard. For example, if a dashboard is called Sales by Country, then anything that comes after the by word is a dimension and the item being counted is a measure. Dimensions and measures are explained as follows:

  • Dimensions: Dimensions describe data
  • Measures: Measures are usually numbers

In this recipe, we will look at the difference between a plain table and a graphical representation of the data. While tables are data visualizations in themselves, Tableau's power lies in its ability to visualize data graphically and quickly. This recipe will demonstrate the ease of going from a table to a picture of the data. We will create a map, and the color intensity of the map coloring reflects the value.

Getting ready

Let's start by opening up Tableau to get ready for your first visualization.

We will need to get some data. To obtain some sample, download the Unicef Report Card spreadsheet from the following link: http://bit.ly/TableauDashboardChapter11Unicef

It will have the following columns:

  • Country
  • Average ranking position (for all 6 dimensions)
  • Material well-being
  • Health and Safety
  • Educational well-being
  • Family and peer relationships
  • Behaviors and risks
  • Subjective well-being

How to do it…

  1. In Tableau, click on File in the top left-hand corner and click on New. You can see this in the following screenshot:
    How to do it…
  2. When you've clicked on New, you will get a blank Tableau workbook. This is shown in the following screenshot:
    How to do it…
  3. Let's insert our downloaded data. To do this, go to the Excel spreadsheet and select all of the data by pressing CTRL + A.
  4. Once you have done this, go to Tableau and press CTRL + V to paste it. Here is an example of the workbook:
    How to do it…

The following points describe the different panels in Tableau:

  • Data window: This holds the measures, dimensions, and calculations in the data
  • The Tableau view: This shows the items held in the Rows, Columns, Marks, Pages, or Filters shelf
  • Shelf: This is a place where you drag a measure or a dimension

The following steps can be performed to create a quick visualization:

  1. When you paste the data, it appears as a crosstab. We can see the data, but it is quite difficult to see any patterns in the data.
  2. Using the preceding list as a basis, it is very simple to create a quick visualization.
  3. Let's take a copy of our work so that we can compare before and after. To do this, click on the Sheet 1 tab at the bottom of the worksheet. Right-click on the worksheet tab at the bottom of the Tableau interface and a pop-up menu appears.
  4. Select the option Rename Sheet and rename the worksheet as Before.
  5. Then, choose the option Duplicate Sheet, as shown in the following screenshot, to take a copy of the worksheet, and rename the new copy as After.
    How to do it…
  6. In the After worksheet, look for Tableau's Show Me feature. This is a key feature of Tableau, and you can see the Show Me toolkit at the right-hand side of the Tableau interface, as shown in the following screenshot:
    How to do it…

    For the purposes of this recipe, we will choose a map visualization.

  7. Using the After worksheet, click on the first Measures column called Average ranking position_(for all 6 dimensions) to select it. Right-click on the column and choose Keep Only. This excludes the rest of our measures, retaining only this column. The result can be seen in the following screenshot:
    How to do it…
  8. When we exclude the other options, the Show Me toolkit changes in response to the amendments that have been made in the data table. Now, the map options are available to us. The Show Me toolkit changes can be seen in the following screenshot:
    How to do it…

    When we select the filled maps option, which is bordered with a heavy line at the top right-hand side row, our screen now changes to look like a filled map, in which each color corresponds to the average rank of each country. An example is shown in the following screenshot:

    How to do it…

    Note

    We have Denmark ranked as 7 and the United Kingdom is ranked at 18. Denmark is considered as having a higher ranking, even though it has a lower number.

  9. To change the color settings, we right-click on the colors item that is located on the left side of the screen, centered vertically. We can see an example in the next screenshot:
    How to do it…

    The Edit Colors dialog box appears. An example can be found in the next screenshot:

    How to do it…
  10. Using the square box, you can change the color. Here, it has been changed to blue. The important item to note here is the Reversed option. This option allows us to reverse the color so that lower numeric values are represented by higher intensities. When we click on Ok, we get the final result as shown in the following screenshot:
    How to do it…

How it works…

The Show Me toolkit takes the guesswork out of what data visualization tool to choose by offering you a selection of visualizations that are based on your data types.

The Show Me button helps you to choose which data visualization is most suited to your data. It does this using an in-built, intelligent, knowledge-based system that is part of Tableau. This helps to take the guesswork out of selecting a data visualization, which can often be a contentious issue among data consumers and business intelligence professionals alike.

Data visualization is telling a story; the value is depicted by a corresponding color intensity. This example topic involved ranking data. Therefore, the higher the number, the lower the value actually is. Here, the value refers to the country rank.

How can we make the message clearer to the users? When we visualize the data in a map, we can still use color in order to convey the message. Generally speaking, we assume that the brighter or more intense a color is, then the higher the value. In this case, we need to adapt the visualization so that the color is brighter in accordance with the rank, not the perceived integer.

There's more…

Color theory is a topic in itself, and you will see practical applications as we proceed throughout this book. For further references, please see the See also section.

See also

  • Data visualizations can also be known as dataviz for short. On Twitter, #dataviz is a well-used hashtag
..................Content has been hidden....................

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