ChartslibraryUI vs Recharts
Recharts is one of the most used React chart libraries, and for good reason. It gives you composable building blocks (<LineChart>, <XAxis>, <Tooltip>) that you assemble into almost any chart. ChartslibraryUI takes the opposite approach: finished dashboard charts that you install as source files and own.
The short version
| Recharts | ChartslibraryUI | |
|---|---|---|
| What you get | Building blocks you compose into charts | Finished charts, one file each |
| How it's installed | npm package | Source files in your repo (shadcn CLI, CLI or copy) |
| Runtime dependencies | Recharts and its dependencies | React only |
| License | MIT | Free charts MIT, Pro one-time |
| Finance charts (waterfall, variance, bridge) | Build them yourself | Included (Pro) |
| Missing data, forecasts, partial periods | Up to you | Built in, consistent across charts |
| Chart types | Very broad | 47 focused on product dashboards |
Where Recharts is the better pick
- You need a chart type we don't have. Recharts' primitives can express radar charts, radial bars and many custom layouts. ChartslibraryUI is deliberately focused on business dashboards.
- You want to compose every detail. If your designers specify each axis, tick and marker, Recharts' component model gives you that control.
- You already use it. Rewriting working charts rarely pays off. ChartslibraryUI charts can sit next to Recharts ones; they share nothing.
Where ChartslibraryUI is the better pick
- Finance and SaaS dashboards. Waterfalls with computed subtotals, budget vs actual where colour follows whether a line is income or cost, forecasts that can't be mistaken for actuals, cohort heatmaps. In Recharts these are projects; here they are components.
- Messy real data. A
nulldraws as a gap with a note, not a zero. Partial months are marked. Invalid input shows a message naming the problem instead of a misleading chart. Every chart behaves the same way. - Code you own. Each chart is one readable TypeScript file on a small shared core. There's no library version to upgrade around, and nothing to fight when you need a change.
- AI coding agents. Every chart ships with "use it for" and "avoid when" guidance in
llms.txtandcharts.json, and installs through the shadcn registry and MCP server.
Honest differences to know
- Bundle and rendering. Both render SVG. Neither is the right tool for hundreds of thousands of points; use a canvas library such as ECharts for that.
- Community. Recharts has years of answers on Stack Overflow and GitHub. ChartslibraryUI is new, but the source is in your repo, so you can read exactly what a chart does.
- Opinions. ChartslibraryUI won't draw a dual-axis chart or a bar chart that doesn't start at zero. If you need those, Recharts will let you.
Can I use both?
Yes. They don't conflict. A common pattern is ChartslibraryUI for the standard dashboard charts and Recharts for one-off custom visuals.
Browse the charts or read Choosing a chart.