Installation
npx shadcn@latest add @iconiq/chartsProps
ChartContainer
Theme-aware Recharts shell that maps ChartConfig tokens to CSS variables, applies registry chart colors, and eases the surface in with fluid motion.
configChartConfigRequired
childrenReactNodeRequired
idstringinitialDimension{ width: number; height: number }classNamestringChartContainer ships its own local --chart-1 through --chart-5 defaults, so chart installs do not need a shared theme helper.
Pair ChartContainer with Recharts primitives and ChartTooltip / ChartLegend helpers rather than Radix UI or Base UI wrappers.
ChartBar
Thin Recharts Bar wrapper with restrained ease-out growth timing tuned for the Iconiq motion profile.
seriesIndexnumberDefault 0
...propsRecharts Bar propsUse fill="var(--color-desktop)" (or your config key) so bars pick up ChartConfig colors.
Bar growth runs once on first paint; resize uses a debounced container and skips repeat bar animations so narrowing the viewport stays stable.
ChartTooltip
Recharts tooltip primitive wired to the shared Iconiq chart tooltip content shell.
contentReactNode | ComponentTypecursorboolean | objectChartTooltipContent
Styled tooltip content shell with a soft spring entrance and dashed, dot, or line indicators.
indicator"dot" | "line" | "dashed"Default "dot"
hideLabelbooleanDefault false
hideIndicatorbooleanDefault false
labelFormatter(value, payload) => ReactNodeformatterRecharts formatterChartLegend
Recharts legend primitive wired to the shared Iconiq legend content shell.
contentReactNode | ComponentTypeverticalAlign"top" | "bottom"Default "bottom"
ChartLegendContent
Legend content shell with a quiet fade-and-rise entrance that matches the chart surface motion.
hideIconbooleanDefault false
verticalAlign"top" | "bottom"Default "bottom"
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: recharts, motion.
This page lives in the Components section, but the install is the shared Iconiq charts shell rather than a Radix UI or Base UI wrapper.
The provider switch is shown for section consistency, but both Radix UI and Base UI options are disabled because Charts does not ship primitive-specific variants.
The generated registry file is /r/charts.json.