We will use formatting options to make our map both prettier and more useable. We will focus on what we can do with the legend, tooltip, and labels.
- Modify map colors.
- Edit the legend.
- Customize the tooltip.
- Add labels.
What bothers me about this map is that the United States, at rank #1, is the lightest color, whereas I associate the darkest color with the highest rank. In fact, if we were still using the count of number of records itself, instead of rank, the United States would be the darkest.
You can get the same result by clicking on Color in the Marks shelf and choosing Edit Colors.
Note: Diverging color schemes are useful when there is a central point that all values are arranged around, creating two "categories" of value. For example: Positive vs. negative, good vs. bad, low vs. high. We do not need a diverging color scheme, but it is worth pointing out the Red Green Diverging choice. Red and green are often chosen as two of the main colors in a visualization, but a significant portion of the population is red-green colorblind! When choosing multiple colors, always check to make sure that the chosen palette will be colorblind accessible.
While we are at it, we may as well change the title of the legend. Rank of CNT(mods.csv) or Rank of SUM(Number of Records) is not an ideal choice.
If you hover your cursor over the various countries on our map, you will notice that an informative box pops up for each country from our dataset. It currently displays the Country and rank.
The tooltip is one of Tableau's most useful interactive features. It is automatically generated by Tableau as we add and remove various dimensions and measures. We can choose to add dimensions or measures directly to the tooltip. We can also modify the text of the tooltip itself. However, once we modify the text, Tableau will not know if automatically updating the tooltip might interfere with our changes. Some updates will still occur, but they may not be consistent or predictable. It is possible to reset the tooltip to Tableau's automatically generated one, but this would remove all of our changes. Therefore, never edit the tooltip text until you are satisfied with the dimensions and measures displayed on your chart, but don't stress if you realize you do have to change something later after all.
We will start by making use of Tableau's automatic tooltip generation.
Because Tableau automatically displays the sum of any measure we add in this manner, Endorsements is calculating the sum of endorsements for all mods for each country. This means that the measure is heavily skewed by the number of records and is therefore not telling us anything particularly new or interesting. We can instead change it to the average to see how many endorsements a given country's mods receive on average.
Since we are satisfied with the measures we are displaying in the map, we should be ready to directly edit the tooltip text. Our goal here is to add clarity, remove irrelevant information, and make the tooltip look pretty.
Note: Do not change
<CNT(mods.csv)>. This phrase references the measure itself, so changing the name would confuse Tableau and cause errors.
<Country>by clicking the align Center box on the top row of the tooltip editor.
A final note: Try hovering over the United Kingdom and examine the tooltip that pops up. It will list the country as either England with 2 mods, United Kingdom with 267, or Wales with 3.
This is because when we mapped England and Wales to the UK, we did not actually change the data. Even in this case it might have been preferable to use a data cleaning tool to change England and Wales to United Kingdom so we would have more consistent data.
This section is optional. We will test out labels, but we are not going to end up changing anything in the visualization.
We can also consider adding labels to the various countries on our map.