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.

@tonal-tokensclsxtailwind-mergelucide-react

Request throughput

Hover or focus any point to inspect throughput

Edge cached 94%
MonTueWedThuFriSatSun

Installation

npx shadcn@latest add https://tonal.harlo.dev/r/tonal-area-chart.json

Dependencies

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

PropTypeDefaultDescription
titlestring"Request throughput"Chart header title.
pointsAreaChartPoint[]DEFAULT_CHART_POINTSOrdered series data points.
badgestring"Edge cached 94%"Top-right callout label.
valueSuffixstring"K requests"Unit suffix in hover/focus readout.