Software
kerzwerk
Version 0.5.3 · MIT
Canvas price charts for Svelte 5 apps — and for any other page, since the core knows no framework. No dependencies, about 29 kB gzip.
Screenshots

Description

kerzwerk draws candles, OHLC bars, lines, areas, histograms, bands and dots on a shared time axis. On top come markers, levels, time spans and custom drawing primitives, a legend, linear, logarithmic, percentage and indexed scales, linked charts and ten drawing tools.
- Live and replay: feed candles live or play them back one by one, load older history at the front.
- Interactive: order lines you drag with the mouse; series that reach beyond the last candle (such as an Ichimoku cloud).
- Small: no runtime dependencies, the core is about 29 kB gzip, the drawing tools 5.3 kB more. An app carries only what it imports.
- Labels in German or English, colours for light and dark.
In use in market_server, trading_book and other applications of mine.
Getting it
The package is on npm under the MIT license:
npm install kerzwerk
Entry points are kerzwerk (core), kerzwerk/svelte (Svelte 5 component), kerzwerk/tools (drawing tools) and kerzwerk/theme.css. Only kerzwerk/svelte needs Svelte.
Get it
Git
git clone https://code.jeanavril.com/jean/kerzwerk