Skip to content

Heatmap

The heatmap widget plots a single metric across two categorical axes, using color intensity to represent the value in each cell. It is the go-to chart for spotting activity patterns — when your users are most active, which combinations are hot or cold.

Use it for:

  • Activity by hour of day × day of week
  • Events by platform × country
  • Any metric you want to compare across two dimensions at once

Return exactly three columns: two axis columns and one numeric value column.

  • The first non-value column is the X axis.
  • The second non-value column is the Y axis.
  • The numeric column (alias it count or value) drives the cell color.

GROUP BY both axis columns.

Select

toHour(timestamp) AS hour,
toDayOfWeek(timestamp) AS weekday,
count() AS count

Filters

WHERE name = 'app_started'
GROUP BY hour, weekday

Result shape:

hourweekdaycount
185320
195410
206380

Activity by hour × weekday

Select: toHour(timestamp) AS hour, toDayOfWeek(timestamp) AS weekday, count() AS count
Filters: WHERE name = 'app_started' GROUP BY hour, weekday


Events by platform × country

Select: platform, country, count() AS count
Filters: GROUP BY platform, country