Item page
CodePen
Sandbox Download

Weather stations styled with visual variables to display wind speed, direction, and air temperature.

What is multivariate data visualization?

Multivariate data visualization involves visualizing more than one data value in a single renderer. This is done for many reasons, including to:

  1. View the relationship between two or more variables
  2. Compare or contrast the difference between two variables
  3. View spatial patterns that may not be related among several variables at one time.

How multivariate data visualizations work

Multivariate visualizations can be done by adding more than one visual variable to a simple renderer. Common combinations include the following:

  1. Color and size
  2. Size and rotation
  3. Size, rotation, and color

You can create multivariate visualizations using many other combinations of visual variables as well, including opacity.

Examples

Color and size

Color and size are typically used to show the relationship between two variables or to show a rate with a color variable, and the magnitude of a variable using a size variable.

Item page
CodePen
Sandbox Download
Weather stations use color for relative humidity and size for the difference between heat index and measured air temperature.
Multivariate - color and size
20 collapsed lines
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Multivariate - color and size</title>
<!-- Load the ArcGIS Maps SDK for JavaScript from CDN -->
<script type="module" src="https://js.arcgis.com/5.2/"></script>
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<arcgis-map item-id="91f6ef52bd524ace99eed8de99ea0123">
<arcgis-zoom slot="top-left"></arcgis-zoom>
<arcgis-expand slot="top-right">
<arcgis-legend></arcgis-legend>
</arcgis-expand>
</arcgis-map>
2 collapsed lines
</body>
</html>

Size and rotation

Size variables are good for visualization total counts or magnitudes. Rotation and size are commonly paired together to map weather data, such as wind. Rotation indicates the direction of flow, while size indicates the wind speed.

Item page
CodePen
Sandbox Download
Weather station symbols show wind speed with size and wind direction with rotation.
Multivariate - size and rotation
20 collapsed lines
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Multivariate - size and rotation</title>
<!-- Load the ArcGIS Maps SDK for JavaScript from CDN -->
<script type="module" src="https://js.arcgis.com/5.2/"></script>
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<arcgis-map item-id="8a0f6c016aed44d798a1c9501e7cb714">
<arcgis-zoom slot="top-left"></arcgis-zoom>
<arcgis-expand slot="top-right">
<arcgis-legend></arcgis-legend>
</arcgis-expand>
</arcgis-map>
2 collapsed lines
</body>
</html>

Size, rotation, and color

Use three visual variables only when they clarify related patterns without overloading the map.

Item page
CodePen
Sandbox Download
Weather stations show wind speed, wind direction, and air temperature together.
Multivariate - size, rotation, and color
20 collapsed lines
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Multivariate - size, rotation, and color</title>
<!-- Load the ArcGIS Maps SDK for JavaScript from CDN -->
<script type="module" src="https://js.arcgis.com/5.2/"></script>
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<arcgis-map item-id="f0783faf4273478a8d164821fa12e291">
<arcgis-zoom slot="top-left"></arcgis-zoom>
<arcgis-expand slot="bottom-left">
<arcgis-legend></arcgis-legend>
</arcgis-expand>
</arcgis-map>
2 collapsed lines
</body>
</html>

Best practices

Using more than one visual variable adds complexity to the visualization. This makes it more difficult for the end user to understand the message. You should always carefully consider whether using multiple variables in one view is preferable to displaying separate views of the data.

Other multivariate styles

You don’t need visual variables to create multivariate visualizations. The following guide pages demonstrate how to create multivariate visualizations with other renderer types.

API support

  1. Color only
  2. Size variable creators only supported for points
  3. Size variable creators not supported in 3D