@wick-charts/svelte
v0.4.2
Published
High-performance canvas timeseries charts for Svelte — candlestick, line, bar, pie. Tree-shakeable, zero runtime deps.
Maintainers
Readme
Wick Charts
High-performance timeseries charts for React, Vue, and Svelte. Canvas-rendered, tree-shakeable, zero runtime dependencies.
Features
- Candlestick, Line, Bar, Pie, Sparkline — all from one package
- Real-time streaming — append/update at 60fps with coordinated animations
- 22 built-in themes plus
createTheme()for custom palettes - Interactive — zoom, pan, crosshair, tooltips
- Stacking — normal and percent modes for line/bar
- Custom-render slots — keep the built-in positioning, replace the contents
- Tree-shakeable — import only what you use
- Zero runtime dependencies — just your framework
Install
npm install @wick-charts/svelteQuick Start
<script>
import {
ChartContainer, CandlestickSeries, Tooltip,
Crosshair, YAxis, TimeAxis
} from '@wick-charts/svelte';
export let data = [];
</script>
<ChartContainer>
<CandlestickSeries {data} />
<Tooltip />
<Crosshair />
<YAxis />
<TimeAxis />
</ChartContainer>API
Every component, prop, type, and slot context lives in the docs site:
wick-charts.eeff.io/api/chart-container
Start there for ChartContainer, then drill into the series (Candlestick, Line, Bar, Pie, Sparkline) and overlays (Tooltip, InfoBar, Crosshair, Legend, YAxis, XAxis, Navigator, …).
Bundle size
Tree-shaken React scenarios via pnpm size (esbuild, minified, browser target, React/ReactDOM external):
| Scenario | Raw | Gzip | Brotli | |---|---:|---:|---:| | Candlestick only | 174.1 kB | 52.4 kB | 44.8 kB | | Line only | 174.1 kB | 52.5 kB | 44.8 kB | | Full React | 191.2 kB | 57.4 kB | 49.0 kB |
Migration
Upgrading across versions? See MIGRATION.md for per-version breaking-change notes and code snippets.
License
MIT
