Skip to content
caliper ui docs

Pro

Returns calendar

A month calendar coloured by daily return, with a compounded total.

Pro
pnpm dlx shadcn@latest add @caliper/returns-calendar

Halden Growth Fund

Net of fees · rebalanced on the first trading day

Daily returns, September 2026

September 2026

+0.62% month · 15 of 30 days up
MonTueWedThuFriSatSunWeek
1−1.50%
2+1.25%
3+0.75%
4+0.25%
5−0.25%
6−0.75%
−0.27%
7−1.25%
8+1.50%
9+1.00%
10+0.50%
110.00%
12−0.50%
13−1.00%
+0.22%
14−1.50%
15+1.25%
16+0.75%
17+0.25%
18−0.25%
19−0.75%
20−1.25%
−1.52%
21+1.50%
22+1.00%
23+0.50%
240.00%
25−0.50%
26−1.00%
27−1.50%
−0.03%
28+1.25%
29+0.75%
30+0.25%
+2.26%

Daily returns, September 2026
DateReturn
2026-09-01−1.50%
2026-09-02+1.25%
2026-09-03+0.75%
2026-09-04+0.25%
2026-09-05−0.25%
2026-09-06−0.75%
2026-09-07−1.25%
2026-09-08+1.50%
2026-09-09+1.00%
2026-09-10+0.50%
2026-09-110.00%
2026-09-12−0.50%
2026-09-13−1.00%
2026-09-14−1.50%
2026-09-15+1.25%
2026-09-16+0.75%
2026-09-17+0.25%
2026-09-18−0.25%
2026-09-19−0.75%
2026-09-20−1.25%
2026-09-21+1.50%
2026-09-22+1.00%
2026-09-23+0.50%
2026-09-240.00%
2026-09-25−0.50%
2026-09-26−1.00%
2026-09-27−1.50%
2026-09-28+1.25%
2026-09-29+0.75%
2026-09-30+0.25%
Installs components/ui/returns-calendar.tsxDepends on d3-shapeMotion none in component source

When to use

Use it for

  • Daily performance for a portfolio or a metric.
  • Spotting streaks and bad days in a month.

Skip it when

  • Values are not signed changes.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/returns-calendar

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from ReturnsCalendar, compound and signedPercent.

example.tsx
import { ReturnsCalendar, compound, signedPercent } from "@/components/ui/returns-calendar"

The worked example comes with Pro

The 32-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

ReturnsCalendar

component
PropTypeDefaultDescription
label *string—
data *readonly DailyReturn[]—Daily returns as percentages. Days without a value show a dash.
monthstring—Visible month as YYYY-MM. Omit for uncontrolled; defaults to the latest month.
onMonthChange((month: string) => void)—
weekStart0 | 11
formatValue((value: number) => string)signedPercent
loadingboolean—
errorstring—
classNamestring—

compound

component

No props of its own; it accepts the native props of its root element.

signedPercent

component

No props of its own; it accepts the native props of its root element.

Accessibility

It exposes grid, row, columnheader, gridcell and status semantics, with aria-label, aria-busy, aria-live, aria-hidden and aria-selected kept in step with state. Changes that matter are announced through a live region.

KeyBehaviour
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.
PageDownMoves by a larger step, or to the next page.
PageUpMoves by a larger step, or to the previous page.
EnterActivates the focused control.
SpaceActivates the focused control.
EscapeCloses or cancels, then returns focus to where it came from.

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Calendar charts examples