Placing marks on a map

One of the ways to encode information on a map is placing a mark for each geographic value and adjusting the size/color of that mark based on some measure. This is the most common type of a map with information used in businesses and media.

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, perform the following steps to create a map with markers encoding information of a measure:

  1. Click on the Show Me button to bring the Show Me toolbar on the screen.
  2. While holding the Ctrl key, click on State (under Customer City) from Dimensions and Profit from Measures.
  3. Click on the symbol of maps on the Show Me toolbar, and you will see the map as shown in the following screenshot:
    How to do it...

How it works...

Once we loaded the data, Tableau assigned geographic roles to State, City, and Customer Zip Code using field names. Tableau also generated Latitude and Longitude for these geographic roles. When we clicked on the symbol of maps, Tableau automatically added State to the Level of Detail pane and placed marks for every state that was present in the data. If you add Customer Zip Code to the Detail box, Tableau will generate markers by zip code and adjust the mark size for the Profit value of that zip code.

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

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