Skip to content

SwiftChart

~14 KB gzipped (12 KB brotli). Zero dependencies. 13 chart types. One library - vanilla or React.
~14 KB gzipped0 dependencies13 chart types4 built-in themesCanvas 2D · React · MIT

Why SwiftChart?

SwiftChartHighchartsChart.jsRecharts
Bundle (gzip)~14 KB~80 KB~60 KB~45 KB
Runtime dependencies0006+
RendererCanvas 2DSVG / CanvasCanvasSVG
React bindingsFirst-class3rd-party wrapper3rd-party wrapperNative
Data schemaAny shapeFixedFixedFixed
LicenseMITCommercialMITMIT

Sizes are min+gzip of the entry bundle. Library facts as of v1.0.

Vanilla or React

Use the imperative class API or the React component wrappers - same chart engine, identical output, identical bundle weight.

Schema-agnostic

Pass any data shape. Auto-detect fields, or map them explicitly - no rigid schema required.

4 themes built-in

midnight, arctic, ember, forest - or define your own with addTheme().

Animated by default

Easings, durations, and transitions tuned out of the box. Disable with animate: false.

Performance-first

LTTB downsampling, viewport culling, quadtree hover, and offscreen rendering - included.

Production-ready

545+ tests, strict TypeScript, ESM + CJS dual-package, attw + publint clean.