All registry items
blocks/r/tonal-area-chart.json
Tonal Area Chart
Zero-dependency responsive SVG throughput & trend area chart with hover and keyboard-focusable points.
Tonal Area Chart
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Request throughput
Hover or focus any point to inspect throughput
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/tonal-area-chart.jsonDependencies
Tonal Registry Dependencies
npm Packages
clsxtailwind-mergelucide-react
Usage
import { TonalAreaChart } from "@/components/tonal/blocks/tonal-area-chart";
<TonalAreaChart title="Request throughput" points={points} valueSuffix="K requests" />Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Request throughput" | Chart header title. |
| points | AreaChartPoint[] | DEFAULT_CHART_POINTS | Ordered series data points. |
| badge | string | "Edge cached 94%" | Top-right callout label. |
| valueSuffix | string | "K requests" | Unit suffix in hover/focus readout. |