Going Further with Multi-layered Maps in Tableau

Step-by-step Tableau data visualization tutorial

Dive deeper into the world of GIS spatial files by learning how to effectively create map visualizations with choropleth maps. This guide includes details on how to display multiple fields on your map, compare similar data fields using bivariate maps, and effectively group data for simplified reading.

Key Insights

  • The dual-axis function in Tableau allows you to add layers to your map, making it possible to display multiple fields on one map.
  • Using the dual-axis function, you can create additional layers of data on a map by combining two or more charts.
  • Bivariate maps are effective for comparing similar data fields on a map, presenting two variables at once on a single area.
  • Creating a bivariate choropleth map involves classifying data into groups (low, medium, high) to simplify data reading.
  • Classifying data fields into groups introduces some level of subjectivity, but it is a reliable way to represent data to see patterns on a map.
  • Further customization of the visualization with colors and legends can enhance the readability and interpretation of the data.

Build a Dual-Axis Map

  1. Create the Base Map

    Drag a measure to the Color mark to map data like population.

  2. Duplicate Longitude

    Drag Longitude (generated) to Columns — creates a second map side by side.

  3. Combine via Dual Axis

    Right-click the second longitude pill → Dual Axis to overlay.

  4. Customize Each Layer

    Each marks card edits independently — change symbol type and add labels per layer.

In the previous article, we looked at the use of GIS spatial files to create map visualizations. This article aims at taking you further on this path by detailing some useful approaches to choropleth maps.

Tableau visualization showing multiple data fields displayed on a map using a dual-axis approach
Fig 1.

Displaying Multiple Fields on Your Map

You might want to display multiple fields on a map. This process will often consist in adding layers to your map using the dual-axis function. The dual-axis allows you to combine two or more charts to create additional layers of data on a map.

In this example, we first create a map with population field mapped using the color mark (fig 1.). We then drag Longitude (generated) field to the column mark. This generates a duplicate of our map, both will be displayed side by side in your Tableau view.

Tableau interface showing column and row properties used for generating a duplicate map

You can then click on the second longitude pill, and from the dropdown menu select Dual Axis to combine the charts.

Tableau interface displaying the option to select Dual Axis from the dropdown menu
Tableau Bootcamp: Live & Hands-on, In NYC or Online, Learn From Experts, Free Retake, Small Class Sizes,  1-on-1 Bonus Training. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

In your marks card, you will notice two longitudes. Remove from the top one the population field you were mapping, then drag another field to it. Choose the circle symbol from the dropdown symbol list to display the second field. To add clarity to our map, we also drag the second field to the label marks to display its values on the map.

Bivariate map example comparing two similar fields using different color scales
Fig. 2

Bivariate Maps to Compare Similar Fields

In some cases you may want to compare two fields of data of the same order on a map.

For example in fig 3., we represented the obesity rate in orange and physical inactivity in red for each county. As represented here, it would be difficult to compare both variables and draw any relationship. It is neither possible to see results overlaying the two layers of data on the same map. The best approach for this type of comparison of similar fields is using a bivariate method.

Map representation of obesity rate and physical inactivity displayed using separate colors
Fig. 3

What is a Bivariate Map?

Example of a bivariate choropleth map comparing two variables with overlapping color scales
Fig. 4 -source: Sarah Battersby
https://public.tableau.com/profile/sarah.battersby#!/

A bivariate map, similar to the one fig. 4, consists in comparing polygon areas where both fields are represented. You explore the influence of both variables at the same time in one polygon area. In bivariate maps, the range of colors represents the relative importance of each data field. As seen on fig. 4, it is a little like painting each county polygon with a combination of both colors.

How to Create a Bivariate Choropleth Map?

We need to first classify our data into groups to simplify reading our data. For example, we group data into classes (low, medium high). To avoid having too many categories, keep each variable groups to 3 maximum. Fig. 3, for the two fields we represented by colors, we can have the following groups:

Legend classifying obesity rates into low, medium, and high categories
Legend showing levels of physical inactivity categorized as low, medium, and high

To create fig. 3, we first calculate the quantile breaks for each attribute and entered them into a calculated field. For instance, for the Obesity rate we’ll have the following formula:

Tableau calculated field formula defining quantile breaks for obesity rates

This converts our field into a dimension. Drag the new calculated field to the color marks to display it on your map with the above legend.

We then combine attributes into a single dimension using the following formula:

Tableau formula used to combine obesity rate and physical inactivity attributes into a single dimension
Tableau-generated bivariate map displaying combined obesity and physical inactivity attributes

Conclusion

As we’ve seen in the bivariate map example, although classifying our data fields into groups introduces some level of subjectivity, it is nonetheless a reliable way to represent our data to see the pattern on our map. We could further customize our visualization with colors and create a legend for the bivariates data. I will detail how in a separate article on the use of colors for Tableau visualizations.

Topics

Learn more in these courses

How to Learn Tableau

Master Tableau with Hands-on Training. One of the World’s Most Popular Data Visualization Tools, Tableau Allows Users to Create Graphs, Charts, and Other Illustrations to Share Their Analytical Findings.

Yelp Facebook LinkedIn YouTube Twitter Instagram