Skip to content
caliper ui pro docs

Choropleth

A map shaded by value per region.

Pro
Adoption rate by state
1880
  1. 1Kansas80
  2. 2Hawaii79
  3. 3Alabama75

Adoption rate by state
RegionValue
Kansas80
Hawaii79
Alabama75
Ohio74
West Virginia73
New York71
Wyoming71
Colorado70
New Hampshire68
Minnesota68
Washington DC68
Washington65
Arkansas65
Florida63
Georgia60
Pennsylvania59
Virginia58
Oklahoma57
Rhode Island56
South Dakota56
Nebraska55
Illinois53
Maine50
Idaho50
Tennessee50
Arizona47
New Jersey44
Maryland43
Louisiana42
Massachusetts41
Iowa41
Missouri40
Wisconsin38
Oregon38
California37
Montana35
North Carolina35
Texas34
New Mexico32
Connecticut29
Delaware28
Mississippi27
Indiana26
Kentucky25
Michigan23
Nevada23
Utah22
Vermont20
North Dakota20
South Carolina20
Alaska18

When to use

  • Comparing regions.

When not to use

  • Exact values matter more than pattern.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/choropleth

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

API reference

Choropleth

5 props
PropTypeDefault
label *string—
regions *readonly Region[]—
unitstring""
format((n: number) => string)(n) => n.toLocaleString("en-US")
classNamestring—

Keyboard

→
Moves to the next item or value.
←
Moves to the previous item or value.
↓
Moves to the next item or value.
↑
Moves to the previous item or value.

Accessibility

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

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/choropleth.md

The index of every part is at /llms.txt.

More in Showpiece charts