Tableau Map

What is Tableau Map?

The functionality to map and visualize certain features in the World map to further understand the dataset is a Tableau Map chart. You can view different functionalities and graphs, such as the profit and sales, which can be done using the Tableau Map layers for each feature.

There are various features in Tableau Map, as shown.

  • Geocoding: Tableau can automatically geocode geographic data such as addresses, cities, or countries to plot them accurately on a map.
  • Layering: You can layer different data sets on maps to visualize multiple dimensions simultaneously. For example, plotting sales and profit along with the cities shows how profitable each state is.
  • Interactivity: You can zoom in and zoom out of the map and hover over data points to gain more info. You can also click on data points marked on the map and highlight them.
  • Map Styles: You can customize it to various map styles, be it street maps or terrain maps. You can even create custom map styles in Tableau.

In this example, the profit of each state in the US can be calculated and better understood using the Tableau Map visualization.

Tableau Map visualization
Tableau Map visualization - AVG profit

Here, the State is taken as a feature along with the average measure of profit. It is color-coded concerning Profit.

Key Takeaways
  • Tableau Maps are used for visualizing geographic data. They support point, filled (polygon), and density maps.
  • Tableau Maps can show quantitative data with proportional symbol maps. They can be used to show ratio data with choropleth maps.
  • They can highlight visual clusters with point distribution maps.
  • Tableau also supports dual-axis methods for further visual appeal and customization.
  • Tableau maps can incorporate heat maps to show density trends.

How to create a Map in Tableau?

Follow these simple steps below to learn how to use Tableau Map charts.

Step 1: Create a new workbook by going to “File” and then selecting “New.”

Tableau Map - Create - Step 1

Connect the required dataset by dragging and dropping it in the new workbook.

Step 2: Use the Airbnb dataset gathered from Austin, Texas, in the US.

Tableau Map - Create - Step 2

Step 3: Go to the new sheet created by default.

Tableau Map - Create - Step 3

Step 4: In the features section, select the features you want to visualize.

Tableau Map - Create - Step 4

Step 5: Drag and drop the Latitude and Longitude features in the Rows and Columns component, respectively.

Tableau Map - Create - Step 5

Here, you can see that Austin, Texas, is marked.

Step 6: Drag and drop the feature “Name” in the Detail tab.

Tableau Map - Create - Step 6

Now, the map of Austin, Texas, looks like this.

Tableau Map - Create - Step 6 - Austin

Step 7: Drag and drop “Maximum Nights” in the Color component in the “Marks” tab.

Tableau Map - Create - Step 7

Step 8: Change the measure of the feature “Maximum Nights” from “Sum” to “Average” by right-clicking on the feature, as shown.

Tableau Map - Create - Step 8

It is the final graph of Airbnbs showing the average number of nights a guest spends there.

Tableau Map - Create - Step 8 - Graph
Tableau Map - Create - Step 8 - AVG(Maximum Nights)

Examples

See the various map visualizations that are possible using Tableau map visualization techniques. Tableau can create various interactive visualizations given the geocodes of the locations to be analyzed.

Example #1: Choropleth maps (filled maps)

When you want to create maps with different color coding but do not want to make them heat maps, this kind of map is called a choropleth map. In this example, you can use the Sample-Superstore dataset to find the number of distinct customers in each state to find the most profitable states and the least profitable states.

Step 1: Connect the Sample-Superstore dataset to a new workbook.

Tableau Map - Example 1 - Step 1

Step 2: When you drag and drop the feature “State” in the feature “Country,” you create a hierarchy as shown.

Tableau Map - Example 1 - Step 2

Step 3: Drag and drop the feature “State” into the “Detail” tab in the “Marks” tab.

Tableau Map - Example 1 - Step 3

It creates a map, as shown.

Tableau Map - Example 1 - Step 3 - Map

Step 4: Similarly, drag and drop “State” in the “Text” component to show the viewer the name of the state.

Tableau Map - Example 1 - Step 4
Tableau Map - Example 1 - Step 4 - Map

Step 5: Under the “Tables,” right-click on “Customer ID”, and go to “Create” > ”Calculated Field” to create a calculated field based on the feature.

Tableau Map - Example 1 - Step 5

Step 6: In the Calculated field, select the function “COUNTD” (count distinct) to find the number of distinct customers.

Tableau Map - Example 1 - Step 6

Name the calculated field.

Tableau Map - Example 1 - Step 6 - Countdistinct

Step 7: Then, drag and drop the newly created calculated field into the “Color” tab in the “Marks” tab.

Tableau Map - Example 1 - Step 7

Now, the map changes to look like this.

Tableau Map - Example 1 - Step 7 - Map

Step 8: Similarly, drag and drop the calculate field to return the number of customers in each state in the “Text” tab in the “Marks” tab.

Tableau Map - Example 1 - Step 8

Step 9: Click on “Color” and click on “Edit Colors.”

Tableau Map - Example 1 - Step 9

Step 10: Change the color to your preference.

Tableau Map - Example 1 - Step 10

Now, check on “Stepped Color.”

Tableau Map - Example 1 - Step 10 - Stepped Color

Now, the Tableau Map chart looks, as shown below.

Tableau Map - Example 1 - Step 10 - Map chart

Step 11: Change the title to your choice.

Tableau Map - Example 1 - Step 11

It is the final look of the map.

Tableau Map - Example 1 - Step 11 - Final Map

Example #2: Heatmap (density maps)

To find the intensity and the difference between the highest and the lowest values can be visually seen using heatmaps usually made in Tableau. In this example, you can find the hosts of Airbnb distribution and create Tableau Map charts from them.

Step 1: In a new Tableau Workbook, connect to the Airbnb dataset of Austin, Texas.

Tableau Map - Example 2 - Step 1

Then, place the Longitude and Latitude values in the Columns and Rows sections, respectively.

Tableau Map - Example 2 - Step 1 - Rows & Columns

Step 2: Drag and drop the feature “Host Neighborhood” into the “Details” tab in the “Marks” tab.

Tableau Map - Example 2 - Step 2

Step 3: Change the graphical representation to “Density.”

Tableau Map - Example 2 - Step 3

Step 4: Click on the “Color” tab and adjust the “Intensity” to your preferences.

Tableau Map - Example 2 - Step 4

Currently, the graph looks like this.

Tableau Map - Example 2 - Step 4 - Graph

Step 5: Change the color to your preference. Here, the Green-Blue diverging colors were chosen.

Tableau Map - Example 2 - Step 5

It is the final result.

Example #3: Flow maps (path maps)

In reality, flow maps are generally used to calculate the passing of a particular event, be it a train, a storm, or a natural disaster. Over time, you can predict their paths and draw flow graphs out of them. Here is an example where the storm database of 2012 in the Pacific basin is used to create some of the most unique and interactive flow maps.

Step 1: In a new workbook, connect the dataset.

Here, the storm map dataset of 2012 is used.

Example 3 - Step 1 - Storm Map

Step 2: Get the map visualization started by placing the Longitude value in the columns and vice versa for the Latitude value.

Tableau Map - Example 3 - Step 2

Step 3: Place the feature “Storm Name” in the “Detail” tab in the “Marks” tab. 

Example 3 - Step 3

Now, the map graph changes to the points, as shown.

Tableau Map - Example 3 - Step 3 - map

Step 4: Change the visualization type to “Line” by clicking on the dropdown in the “Marks” tab.

Example 3 - Step 4

The graph changes to look like this.

Tableau Map - Example 3 - Step 4 - Graph

Step 5: Take the “Date” value and place it in the “Line” tab in the “Marks” tab.

Example 3 - Step 5

This tab pops up if you have selected a line graph visualization. Now, the graph changes to resemble a flow graph.

Tableau Map - Example 3 - Step 5 - flow Graph

Step 6: Take the “Storm Name” feature and place it in the “Color” tab in the “Marks” tab to visually distinguish the path of every storm in the Pacific.

Example 3 - Step 6

These are the colors.

Tableau Map - Example 3 - Step 6 - colors

It is what the graph looks like.

Tableau Map - Example 3 - Step 6 - graph

Step 7: Drag and drop the “Avg. Wind speed (kt)” into the “Size” tab in the “Marks” tab.

Tableau Map - Example 3 - Step 7

This is the path graph successfully created to visualize the different storms, their wind speed, and their pathways in the Pacific Basin in 2012.

Tableau Map - Example 3 - Step 7 - Path graph

Example #4: Spider maps (origin-destination maps)

When you want more detailed path maps with a clear start and ending point along with the different stops, you can use the spider maps. These maps are created using the Tableau Map dual-axis method to show the different stops and view various intersections to give the viewers an idea of how interconnected the map is, similar to a spider web. You can see this example using the metro traffic station dataset in Ile-de-France.

Step 1: Connect the metro station database to a new Tableau workbook.

Example 4 - Step 1

Step 2: Start by placing the Latitude and Longitude values in the Rows and Columns field respectively.

Example 4 - Step 2

Step 3: Drag and drop the feature “Line Group (Path ID)” onto the “Details” tab in the “Marks” tab. Since it is shown as a numeric value, first, click on “Dimension” after right-clicking on the feature. Then right-click again and select “Discrete.”

Example 4 - Step 3

The map will expand and include these points.

Tableau Map - Example 4 - Step 3 - Expand

Step 4: In the “Marks” tab, change the visualization type to “Line.”

Tableau Map - Example 4 - Step 4

Step 5: Drag and drop the feature “Point Order” in the “Line” tab in the “Marks” tab.

Example 4 - Step 5

Remove its statistical measure by right-clicking on it and selecting “Dimensions”.

Tableau Map - Example 4 - Step 5 - Dimensions

Step 6: Similar to the “Line Group” feature modified in Step 3, create another “Line Group (Path ID)” feature that is discrete and then drag and drop it in the “Color” tab in the “Marks” tab.

Example 4 - Step 6

The Tableau Map chart looks like this.

Tableau Map - Example 4 - Step 6 - Map

Step 7: Copy another Longitude value in the columns.

Tableau Map - Example 4 - Step 7

This creates a new map that is identical.

Tableau Map - Example 4 - Step 7 - Map

Step 8: In the “Marks” tab, go to the second longitude graph and change the visualization type from “Line” to “Circle.” When you want to create maps with different color coding but do not want to make them heat maps, this kind of map is called a choropleth map.

Example 4 - Step 8

Step 9: Drag and drop the “Line Group” in the “Detail” tab to the “Size” tab.

Example 4 - Step 9

Step 10: Create a Tableau Map dual axis by right-clicking on the Longitude value in the columns tab and selecting “Dual Axis.”

Example 4 - Step 10

This is the completed spider graph of the metro station connections in Ile-de-France.

Tableau Map - Example 4 - Step 10 - Spider Graph

Example #5: Proportional symbol maps

When you want to see the total sales and profits, you can see that using the Symbol Maps in Tableau. These are not similar to Heatmaps but will symbolically show whether the given strategy is viable in a given place. One of the best places to use this is to compare the Sales made in each state with the Sample-Superstore dataset.

Step 1: Connect a workbook to the dataset.

Example 5 - Step 1

Step 2: Click on “Show Me” in the top-right corner of the application and click on “Symbol Maps.”

Example 5 - Step 2

You need one geo-dimension and 0-2 numerical measures.

Step 3: To satisfy these requirements, choose “State,” a geo-dimension and “Sales,” a numerical dimension.

Example 5 - Step 3

Step 4: Drag and drop the “Sales” feature to the “Size” component in the “Marks” tab.

Example 5 - Step 4

Similarly, drag and drop “State” in the “Detail” component in the “Marks” tab.

Example 5 - Step 4 - State

Step 4: To show the values of sales in the map, drag and drop “Sales” in the “Text” component in the “Marks” tab.

Example 5 - Step 4 - Sales

Step 5: Then, drag and drop the “Quantity” in the “Color” component in the “Marks” tab.

Example 5 - Step 5

Step 6: Edit the colors of the graph by right-clicking on the legend on the right corner of the Worksheet and then selecting “Edit Colors”.

Example 5 - Step 6

Select the Color of your choice.

Tableau Map - Example 5 - Step 6 - Color

Step 7: Then, adjust the size of the circles if you are unable to see some of them in the default size. Click on the “Size” component and drag the slider to the right or left, depending on your preferences.

Example 5 - Step 7

It is the completed symbol map of the Sample-Superstore dataset showing both the total number of sales and the total “Quantity” of the products.

Tableau Map - Example 5 - Step 7 - Map

Important Things To Note

  • Use the drag-and-drop functionality to quickly create interactive visualizations.
  • Utilize Tableau’s built-in mapping capabilities for simple point or filled (polygon) maps.
  • You need to use geographic fields to create a map view.
  • For additional customization, use dual-axis maps.
  • Don’t expect Tableau to automatically suggest geographical maps or data formats.
  • Tableau cannot handle complex table calculations without incorporating other scripting languages.

Frequently Asked Questions (FAQs)

1. Can I customize the appearance of the map in Tableau?

Yes, you can customize the appearance of the map in Tableau using various techniques. For example, to be able to customize the background map, you can select a style and clear or add background map layers.

2. How can I create custom territories or regions on a Tableau map?

To create custom territories or regions on a Tableau map, you can group locations by following these steps:

• Double-click on the Country field under Dimensions to create a map with dots representing countries.
• Press Ctrl + drag the Latitude (generated) pill to make a second map.
• Change the mark type to a circle or any different visualization.
• Use the Marks card to adjust marks, colors, and shapes.
• Utilize dual axis for additional customization.

3. Is it possible to add multiple layers to a Tableau map?

Yes, it is. In Tableau, you can remove or add custom backgrounds using the Tableau Map layers functionality for further customization. It can add or remove transparency, decrease the intensity of the graphs outside a certain region, and so on.

4. Are there any limitations to Tableau maps?

Yes, there are a few limitations to keep in mind when using Tableau Map visualization.

• No custom visual imports are possible.
• There is only limited data preprocessing.
• The parameters are static and single-value.
• Custom formatting is limited in Tableau Maps customization.
• Scheduling or notification of reports is not available in most cases. Hence, financial reports are difficult to represent in Map visualizations.
• Scaling and pricing for enterprises can be expensive.
• Custom territories or regions must be manually created. It takes a substantial amount of effort.

This has been a guide to What Is Tableau MAP. Here we explain how to create interactive Map visualizations with features, examples and points to remember. You can learn more from the following articles –

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *