Klar

Charts / React BI charts / Schedule

Calendar heatmap

Every day of the year as a cell coloured by volume, with monthly totals beneath, so weekly rhythm, seasonality and one-off incidents all show at once.

React component CalendarHeatmap, data through props. Things placed on a calendar or clock: Gantts, punchcards, traces. Tags: calendar, heatmap, daily, seasonality, year, github-style, activity.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, CalendarHeatmap } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-calendar.json

Usage

<CalendarHeatmap data={dailyOrders} years={y === 'both' ? [2026, 2025] : [2026]} today={TODAY} unit="orders" />

Related calendar heatmap charts