IconResources
Visualize intelligence

Heatmap

Add a heatmap to a card.

Heatmaps are useful for visualizing the magnitude of values across two categorical or time-based dimensions. Use them to identify hotspots, trends, and anomalies in dense grids.

Add heatmap

Set card to type "Vega Chart".

t0 screenshot - Add pie chart

t0 Prompt

Select data in the context dropdown of the chat window.

make a heatmap

show value by row and column

convert to heatmap

Code

{
...
"mark": "rect",
"encoding": {
"x": {"field": "...", "type": "ordinal"},
"y": {"field": "...", "type": "ordinal"},
"color": {"field": "...", "type": "quantitative"}
},
...
}

t0 screenshot - Add card

Configuration options

PropertyDescription
markUse "rect" to draw the grid cells.
xHorizontal axis, typically a category or time bucket.
yVertical axis, typically another category or segment.
colorEncodes the value by intensity (requires quantitative data).
scale.schemeControls the color palette (e.g., "greenblue", "blues", "reds").
tooltipDisplays all dimension and value fields on hover.
autosizeEnsures the chart fits inside its container.
view.strokeRemoves outer border for a cleaner grid look.

On this page