Skip to content
Menu

Charts

Activity cell heatmap

Activity cell heatmap: A calendar grid of small tinted squares that sweeps in on a diagonal wave and lets a level strip isolate one intensity at a time.

Using Activity cell heatmap

Use this calendar heatmap to explore a compact activity display with five intensity levels and a shared color legend.

Activity cell heatmap uses the wide preview frame with a light/dark theme setting.

Change the number of weeks and the start of the week to compare dashboard layouts. Hover or focus a day to inspect its readout when interaction is enabled.

This implementation generates deterministic sample activity around a fixed date. Connect real data and update the date model before presenting it as a live activity report.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
accentcolor#9BE15DNo additional limit in the metadata.
weeksnumber30From 12 to 53; step 1
gapnumber2From 1 to 6; step 1
cornerRadiusnumber2From 0 to 6; step 1
weekStartselectsundayOptions: sunday, monday
interactivebooleantrueNo additional limit in the metadata.
Which frameworks are available for Activity cell heatmap?

Activity cell heatmap is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Activity cell heatmap depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

What accessibility details are visible in Activity cell heatmap?

The React source for Activity cell heatmap includes: native elements (button); attributes and handlers (aria-hidden, aria-label, onKeyDown, tabIndex); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Activity cell heatmap handle reduced motion?

Activity cell heatmap reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduce ? 0 : 0.12; isActive && !reduce ? "scale(1.26)" : "scale(1)"; transitionDelay: !reduce && ready && !revealed ? `${((cell.col + cell.row) * stepMs).toFixed(0)}ms` : "0ms". Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components