← All comparisons
Chart.ts vs ApexCharts
ApexCharts is a feature-rich SVG charting library with many chart types and interactivity. However it carries a large bundle and uses a jQuery-era API.
| Feature | Chart.ts | ApexCharts |
|---|---|---|
| Bundle size | <15kb min+gzip (entire library) | ~130kb min+gzip |
| Tree-shaking | Full (import only what you use) | Not supported (monolithic bundle) |
| TypeScript | Built-in, strict mode, full inference | Built-in types |
| SSR | Native SSR, works with any framework | Limited (DOM-dependent) |
| Accessibility | WCAG AA, keyboard nav, screen readers, pattern fills | Basic |
| Tailwind CSS | Native className on every element, dark: variants | Not native (imperative config) |
| Chart types | 65+ built-in (52 core + 13 WebGL/3D) | ~15 built-in |
| Frameworks | React, Vue, Svelte, Solid, Angular, Vanilla JS | Wrappers for React, Vue, Angular |
| License | MIT | MIT |
| Rendering | Triple engine: SVG + Canvas + WebGL (auto-switching at 10k/100k points) | SVG only |
| Real-Time | Built-in streaming, WebSocket, SSE, HTTP polling via @chartts/websocket | Basic append |
| 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 | Candlestick only |
| Plugins | defineChartType() with render context, hit testing, custom scales | Limited customization |
| Interactions | Zoom, pan, brush selection, crosshair, linked charts | Zoom, pan, brush |
| Advanced Charts | Sankey, treemap, sunburst, chord, geo maps, network graphs, 3D globe | 14 types (no sankey, geo, 3D) |
| Theme Presets | 34 presets (Nord, Dracula, Catppuccin, Tokyo Night, Material, etc.) | 3 palettes |
Why switch from ApexCharts?
Chart.ts advantages
- Under 15kb vs 130kb+ bundle
- Full tree-shaking vs monolithic import
- Modern declarative API vs jQuery-era config
- 65+ chart types with WebGL/3D
- Native Tailwind CSS integration
ApexCharts limitations
- Massive 130kb+ bundle
- No tree-shaking, imports everything
- jQuery-era imperative API
- Not Tailwind-native
- Heavy for modern web apps
Ready to switch?
Get started with Chart.ts in 30 seconds.
$
npm install @chartts/core