Document toolboxDocument toolbox

.Heatmap widgets vv7.0.8

The heatmap widget displays the density of data points on a geographical map and helps you see the intensity of phenomena visualized through a color scale. 

These are useful when you need to analyze big geographical datasets. They are especially suited to display indicative trends at a high level. Patterns can be identified quickly, and relevance determined for even the largest datasets.

This is the source query used to generate the above widget:

query(
from demo.ecommerce.data
select mmlatitude(clientIpAddress) as lat
select mmlongitude(clientIpAddress) as lng
where isnotnull(lat) and isnotnull(lng)
group every 30m by lat, lng, statusCode
every 0
select count() as count
)

What data do I need for this widget?

The source query must include geolocation coordinates (longitude and latitude), as well as a numerical value to determine the magnitude of each record plotted on the map.

Widget settings

The widget settings are contained in the Data and Visual tabs. The settings in the Data tab are described in the Create a widget article.

These are the visual settings for the heatmap widget:

CategorySettingDescription
Map configurationZoomSet the default zoom level. A higher number will set a higher zoom level.
Map style

Choose one of the four map types available:

  • Hybrid - displays a mixture of normal and satellite views.
  • Roadmap - displays the default road map view. This is the default map type.
  • Satellite - displays Google Earth satellite images.
  • Terrain - displays a physical map based on terrain information.
DraggableSelect this option to enable the possibility of dragging the map to see a different area. Unselect it if you want to keep a specific area and zoom level in your map.
ColorsBackground colorSelect a color for the map background. This is only visible when you zoom out a certain distance.
Fields

LatitudeChoose the field you want to get the latitude values from.
Longitude

Choose the field you want to get the longitude values from.

ValueSelect the field you want to use to determine the magnitude of each record on the map. This field must be a number.
Series (10 values)Select a field to plot a specific data series on the map and analyze the intensity of each of their values. After doing it, you can show/hide specific values using the checkboxes that appear on the map. Each value is automatically assigned a color palette to differentiate them it from the rest.

Tips for using a heatmap widget

Here are a few tips to get the most out of your heatmap widget:

  • Use the + and - buttons to adjust the zoom level. Alternatively, you can hold the CTRL key and scroll the mouse wheel.
  • Select the button in the top right corner of the heatmap to activate the full screen mode. Click it again to restore the default view.
  • Apply the Map or Satellite views to the map using the buttons in the top left corner.
  • Click the Google logo to see the area displayed in the heatmap on Google Maps.