← All comparisons
Chart.ts vs Apache ECharts
ECharts is a powerful, enterprise-grade charting library from Apache. It supports many chart types but has an enormous bundle and complex configuration.
| Feature | Chart.ts | ECharts |
|---|---|---|
| Bundle size | <15kb min+gzip (entire library) | ~300kb+ min+gzip |
| Tree-shaking | Full (import only what you use) | Partial (still very large) |
| TypeScript | Built-in, strict mode, full inference | Built-in types |
| SSR | Native SSR, works with any framework | Server-side rendering available |
| Accessibility | WCAG AA, keyboard nav, screen readers, pattern fills | Basic ARIA support |
| Tailwind CSS | Native className on every element, dark: variants | Not supported (canvas/SVG hybrid) |
| Chart types | 65+ built-in (52 core + 13 WebGL/3D) | 30+ built-in |
| Frameworks | React, Vue, Svelte, Solid, Angular, Vanilla JS | Wrappers available |
| License | MIT | Apache 2.0 |
| Rendering | Triple engine: SVG + Canvas + WebGL (auto-switching at 10k/100k points) | Canvas + SVG |
| Real-Time | Built-in streaming, WebSocket, SSE, HTTP polling via @chartts/websocket | Basic streaming |
| GPU / 3D | WebGL renderer + @chartts/gl with 13 3D chart types (Scatter3D, Surface3D, Globe3D, etc.) | WebGL via GL extension |
| Financial | @chartts/finance: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, VWAP, Sharpe ratio | Candlestick only |
| Plugins | defineChartType() with render context, hit testing, custom scales | Custom series |
| Interactions | Zoom, pan, brush selection, crosshair, linked charts | Zoom, brush, dataZoom |
| Advanced Charts | Sankey, treemap, sunburst, chord, geo maps, network graphs, 3D globe | 20+ types (sankey, geo, graph, 3D) |
| Theme Presets | 34 presets (Nord, Dracula, Catppuccin, Tokyo Night, Material, etc.) | ~10 presets |
Why switch from ECharts?
Chart.ts advantages
- Under 15kb vs 300kb+
- Native Tailwind CSS integration
- Better TypeScript (strict, zero any)
- Native framework packages (not wrappers)
- Same chart breadth at 1/20th the size
ECharts limitations
- Enormous bundle size (300kb+)
- Complex nested configuration objects
- Not Tailwind-native
- Over-engineered for most use cases
- Learning curve for configuration
Ready to switch?
Get started with Chart.ts in 30 seconds.
$
npm install @chartts/core