← All comparisons
Chart.ts vs Recharts
Recharts is a React-only SVG charting library built on D3. It provides good React integration but comes with a large bundle due to D3 dependencies.
| Feature | Chart.ts | Recharts |
|---|---|---|
| Bundle size | <15kb min+gzip (entire library) | ~45kb min+gzip |
| Tree-shaking | Full (import only what you use) | Partial (D3 dependencies limit it) |
| TypeScript | Built-in, strict mode, full inference | Built-in types |
| SSR | Native SSR, works with any framework | Works with Next.js (client components) |
| Accessibility | WCAG AA, keyboard nav, screen readers, pattern fills | Basic SVG roles |
| Tailwind CSS | Native className on every element, dark: variants | Limited (inline styles dominate) |
| Chart types | 65+ built-in (52 core + 13 WebGL/3D) | ~12 built-in |
| Frameworks | React, Vue, Svelte, Solid, Angular, Vanilla JS | React only |
| License | MIT | MIT |
| Rendering | Triple engine: SVG + Canvas + WebGL (auto-switching at 10k/100k points) | SVG only (via D3) |
| Real-Time | Built-in streaming, WebSocket, SSE, HTTP polling via @chartts/websocket | No streaming |
| GPU / 3D | WebGL renderer + @chartts/gl with 13 3D chart types (Scatter3D, Surface3D, Globe3D, etc.) | No WebGL/3D |
| Financial | @chartts/finance: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, VWAP, Sharpe ratio | No |
| Plugins | defineChartType() with render context, hit testing, custom scales | No plugin system |
| Interactions | Zoom, pan, brush selection, crosshair, linked charts | Basic brush only |
| Advanced Charts | Sankey, treemap, sunburst, chord, geo maps, network graphs, 3D globe | 12 types (no sankey, geo, 3D) |
| Theme Presets | 34 presets (Nord, Dracula, Catppuccin, Tokyo Night, Material, etc.) | No presets |
Why switch from Recharts?
Chart.ts advantages
- 65+ chart types vs 12
- Works with any framework, not React-only
- No D3 dependency chain (smaller bundle)
- Native Tailwind className on every element
- Built-in WebGL/3D and financial charts
Recharts limitations
- React only, no Vue/Svelte/Solid support
- Large bundle due to D3 dependency chain
- Inline styles make Tailwind integration awkward
- Client component required (no RSC)
- API is verbose with many wrapper components
Ready to switch?
Get started with Chart.ts in 30 seconds.
$
npm install @chartts/core