Skip to content
caliper ui docs

Pro

Revenue explorer

Revenue split by segment and period, with a table.

Pro
pnpm dlx shadcn@latest add @caliper/revenue-explorer

Northwind revenue

The last twelve months by stream, against the year before

Monthly revenue$2.19M +28.9% vs last year

Monthly revenue
PeriodSubscriptionsUsageServicesLast year
Nov900002400018000105600
Dec967002833823200117997
Jan1034003232428400129986
Feb1056003569220600127571
Mar1123003832825800138320
Apr1190004029518000138290
May1212004182323200144509
Jun1279004324828400154051
Jul1346004493020600153700
Aug1368004716725800160262
Sep1435005012318000160833
Oct1502005378323200171750
Installs components/ui/revenue-explorer.tsxDepends on d3-shapeMotion none in component source

When to use

Use it for

  • Finance asks where the money comes from.

Skip it when

  • You need a single total.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/revenue-explorer

Adds its 4 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.

example.tsx
import { RevenueExplorer } from "@/components/ui/revenue-explorer"

The worked example comes with Pro

The 31-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

RevenueExplorer

component
PropTypeDefaultDescription
label *string—
segments *readonly { id: string; label: string; }[]—
data *readonly RevenuePoint[]—
priorreadonly number[]—The same periods a year earlier, as totals.
loadingboolean—
errorstring—
classNamestring—

Accessibility

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

No custom key handling; Tab and the native activation keys do the work.

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 Revenue charts examples