Chart

Shared chart shell, legend, tooltip, and axis helpers for Recharts-based visualizations.

stable

Quick Preview

Booked homes

1.28k

12.5%vs last month

Collections vs Target

Confirmed estate payments, Jan-Jun

Composition

Use this public composition when building Chart:

ChartCard
├── ChartHeader
│   ├── ChartTitle
│   └── ChartDescription
└── ChartContainer
    ├── ChartTooltip
    └── ChartLegend

Usage

<ChartCard><ChartHeader><ChartTitle>Revenue</ChartTitle></ChartHeader><ChartContainer config={config}>...</ChartContainer></ChartCard>

Examples

Default Chart

Use this as the starting point for Chart. Keep product data, routing, fetching, and authorization logic in the consuming app.

Booked homes

1.28k

12.5%vs last month

Collections vs Target

Confirmed estate payments, Jan-Jun

Props

Prop/APITypeDefaultDescription
size`"sm""md""lg"`
configChartConfig-Series labels, icons, and colors.
initialDimensiondimension object-SSR-friendly initial plot dimensions.
classNamestring-Local layout or spacing overrides.
native/root propsReact component props-Passed through to the underlying root or primitive.

Accessibility

  • Preserve the documented Chart composition so labels, triggers, content, and controls remain connected.
  • Provide visible labels or accessible names for interactive controls.
  • Preserve the component-provided focus, keyboard, disabled, and invalid-state behavior.
  • Do not communicate state with color alone; include text, icons, or helper copy.

On this page