Skip to content
ChartslibraryUI Get Pro

Calendar heatmap

A year of daily values as weeks × weekdays.

When to use

  • Daily active users
  • Deploys, incidents or sales per day

When not to use

Good practice

  • Pass ISO date strings; they're read as UTC so days never shift.
  • One calendar per year.

Installation

Calendar heatmap is a Pro chart.

Installation is part of Pro

The full source is included in the Pro download. Get Pro to install it with the CLI and use it in unlimited projects.

Unlock with Pro
Already have Pro?npx chartslibraryui add calendar-heatmap --from ./chartslibraryui-pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in the Pro download. The props and data shape below are public.

Unlock with Pro

Data

Rows with a date key and a numeric value key.

[{ date: "2026-03-14", value: 5210 }, ...]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface CalendarHeatmapProps extends FrameProps {
  /** One row per day: ISO date string ("2026-03-14"), Date or ms. */
  data: Row[];
  date: string;
  value: string;
  format?: FormatInput;
  /** First day of the week. Default Monday. */
  weekStart?: "monday" | "sunday";
}
Pro

Heatmap

A grid coloured by value, sequential or diverging, with missing cells hatched.

Line chart

Trends over time for one to four series, with gaps for missing data and marked forecasts.