Command Palette

Search for a command to run...

Chart

Visualize data using customizable charts powered by Recharts.

Line Chart

Stacked Area Chart

Installation

1 npm install recharts

Props

ComponentPropsDescription
ChartContainerid?, className?, config, children, ...divPropsChart wrapper that provides theming and context for tooltips and legends. Accepts a config object for colors and labels.
ChartTooltipContentactive, payload, hideLabel?, hideIndicator?, indicator?, label?, labelFormatter?, formatter?, labelClassName?, color?, nameKey?, labelKey?Custom tooltip content with theme-aware indicators, label formatting, and full config integration.
ChartLegendContentclassName?, payload, verticalAlign?, hideIcon?, nameKey?Custom legend with icon rendering, label overrides, and vertical positioning support.
ChartStyleid, configInjects scoped CSS variables for dynamic chart theming using light/dark palettes.
ChartTooltip*Inherits Recharts.TooltipUnstyled Recharts tooltip, used optionally outside the styled content variant.
ChartLegend*Inherits Recharts.LegendUnstyled Recharts legend, used optionally outside the styled content variant.
LineChart / AreaChartwidth, height, dataContainer for drawing chart lines or stacked areas.
Line / AreadataKey, stroke, fill, stackIdDefines each data element's shape and style.
XAxis / YAxisdataKey, domainChart axes configuration.
Tooltipformatter, labelFormatterCustom tooltip for chart data.