Chart
Pre-styled chart containers using Recharts. The ChartContainer handles theming, tooltips, and legends using Cookest design tokens.
$cookest-ui add chart
Bar Chart — Weekly Calories
Track calorie intake across the week.
Area Chart — Protein Intake
Visualise macronutrient trends over the week.
Pie Chart — Cuisine Distribution
Show how recipe collection is distributed across cuisines.
| Prop | Type | Default | Description |
|---|---|---|---|
config | ChartConfig | — | Map of data keys to labels and colors. |
className | string | — | Apply sizing — use h-* for height. |
ChartTooltipContent | — | — | A pre-styled tooltip matching the Cookest design system. |
ChartLegendContent | — | — | A pre-styled legend matching the Cookest design system. |