Line Chart
A line chart for change over a range, with one or more series.
When to use
- Use when
- Change over a range where the line matters more than the area, or several series that overlap.
- Avoid when
- Parts of a whole over time; use stacked Area Chart.
Installation
The source lands in src/components/ui/chart-line.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.6 kB gzipped on its own, 86 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 2 stories
- Behavior
- 2 interaction tests in Storybook
- React Doctor
- React Doctor finds nothing