Area Chart
An area chart for trends over a range, with a soft fill under each line.
When to use
- Use when
- Trends over a continuous range, such as revenue by month, where volume matters.
- Avoid when
- Exact values matter more than shape; use a table, or a Line Chart for several close series.
Installation
The source lands in src/components/ui/chart-area.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
Verified
- Size
- 0.8 kB gzipped on its own, 87 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 5 stories
- Behavior
- 4 interaction tests in Storybook
- React Doctor
- React Doctor finds nothing