Area chart
The line chart with its area filled down to the baseline in a fading gradient.
Covers
Oct 26 – Nov 1, 2026 · vs previous period
Installation
npm i @uisatin/uiimport { AreaChart } from '@uisatin/ui/area-chart'About 50.8 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.
npx shadcn@latest add https://uisatin.dev/r/area-chart.json https://uisatin.dev/r/line-chart.jsonAdds area-chart.tsx, badge.tsx, bar-chart.tsx, chart.tsx, dropdown.tsx, floating.tsx, form-field.tsx, kbd.tsx, labels.tsx, line-chart.tsx, pointer-modality.tsx and select.tsx to components/ui.
First time with Satin? Set it up once, styles and fonts included, with the installation guide.
API Reference
The AreaCard component is LineCard with the area under the line filled: chart/3 fading from 28% at the line to nothing at the baseline.
| Prop | Type | Default |
|---|---|---|
title | string | — |
range | string | — |
data | ChartDatum[] | — |
total | string | — |
change | string | — |
periods | string[]string[][] | — |
value | string | — |
onPeriodChange | (period) => void | — |
unit | string | — |
labelEvery | number | — |
formatValue | (value) => string | — |
reducedMotion | boolean | — |
highlight | number | — |
Accessibility
The same as the Line chart: the card is role="figure" labelled by its title, and the plot is one tab stop, a role="group" named "title, 12 points". Focusing it picks the last point, and a polite live region reads the picked point as "label: value". The line, area and axes are hidden.
| Key | Action |
|---|---|
| Tab | Focuses the plot and picks the last point. |
| ←or→ | Picks the previous or next point; stops at the ends. |
Something wrong or missing on this page?
Report a problemSuggest an improvement