Skip to content

Charts

Themed Recharts wrappers (Line, Bar, Area, Donut). Colors come from --chart-1..5 CSS vars.

stable

Rendered example — light + dark

Light

LineChart

BarChart

AreaChart

DonutChart

Dark

LineChart

BarChart

AreaChart

DonutChart

Recipes & props

A realistic usage snippet for this component. Imports come from @/components/ui/…. See the source for the full API.

import { LineChart } from '@/components/ui/charts';

const data = [
  { month: 'Jan', prs: 8 },
  { month: 'Feb', prs: 14 },
  { month: 'Mar', prs: 11 },
];

// Colors come from --chart-1..5 CSS vars (dark-mode aware).
export function Throughput() {
  return <LineChart data={data} index="month" categories={['prs']} />;
}

Report an issue

Show diagnostics

Environment

 

Console errors

 

Failed requests