Installation
SwiftChart is published as @arshad-shah/swift-chart. React is an optional peer dependency — install it only if you plan to use the /react entry point.
pnpm add @arshad-shah/swift-chartnpm install @arshad-shah/swift-chartyarn add @arshad-shah/swift-chartBrowser support
Canvas 2D + ResizeObserver: Chrome 64+, Firefox 69+, Safari 13.1+, Edge 79+.
Bundle size
| Entry | Gzipped | Brotli |
|---|---|---|
Core (@arshad-shah/swift-chart) | ~14.4 KB | ~12.4 KB |
React (@arshad-shah/swift-chart/react) | ~13.4 KB | ~11.9 KB |
The two entry points share most of their code; importing both does not double the bundle.