Chart
The frame around a recharts chart. ChartContainer sizes it to its parent, turns a config into --color-<key> variables and themes the axes and grid; the tooltip and legend read their labels from the same config.
tsx
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
ChartLegend,
ChartLegendContent,
type ChartConfig,
} from "@pestoui/core"Area chart
Each config key becomes a CSS variable inside the container, so the series is painted with var(--color-runs) and never with a literal. Give the container a height; the width follows its parent.
Two series with a legend
ChartLegendContent lists each series by its config label. indicator="line" on the tooltip swaps the dot for a bar beside each row.
Props
Pesto UI · 117 documented components