Data display

Chart

Recharts with the theme · series colours from var(--chart-1)…--chart-5

The web kit's real component, live. Follows this site's theme.

Usage

Colour every series with a chart token through the config, never a hex.

API

<ChartContainer config={{ key: { label, color: "var(--chart-1)" } }}><BarChart data>…</BarChart></ChartContainer>

Get it

Already in every copy of the web kit:

import { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent } from '@/components/ui/chart';

Details

Exports
ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent
Also searched as
graph, bar chart, line chart, recharts
Upstream
Unchanged from shadcn/ui; installs from their registry.

Agents: the whole registry is at /llms.txt.