Introduction
peakcharts is a React chart library for people who need charts that are readable, keyboard friendly and calm. Pass in labels and values, and get an accessible SVG chart with a data table behind it.
| Feature | What you get |
|---|---|
| Seventeen chart types | Bar, line, area, pie, donut, histogram, scatter, bubble, radar, radial, waterfall, heatmap, funnel, treemap and more. |
| Three styles, one API | Flat, pixel and 3D depth share the same data, axes and tables. Switch with a single variant prop. |
| Pinnable values | Hover, focus or tap a mark to read it. Pin it, and hovering elsewhere will not replace it. |
| Data tables included | Every chart has a collapsible HTML table with the same values. |
| Motion that stops | Geometry draws in once. prefers-reduced-motion turns it off, or pass animate={false}. |
| Themeable | Light and dark out of the box. Everything else is a CSS variable. |
| Typed | Written in TypeScript, with declarations for every component and helper. |
| Self-hosted fonts | DM Sans is bundled, so there is no request to Google Fonts. |
Where to go next
- Installation gets a first chart on screen in two minutes.
- All charts lists every component with a live example and its data shape.
- Props and types is the full reference.
- Theming covers dark mode and the CSS variables.