Skip to content

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.

Terminal window
pnpm add @arshad-shah/swift-chart

Browser support

Canvas 2D + ResizeObserver: Chrome 64+, Firefox 69+, Safari 13.1+, Edge 79+.

Bundle size

EntryGzippedBrotli
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.