Chart
Build financial charts with Bloxwap's open source TypeScript library.
Chart is Bloxwap's TypeScript library for financial charts. It renders to canvas, with built-in indicators and drawing tools, WebAssembly acceleration, and a JavaScript fallback.
GitHub · README and API examples · MIT license
Availability
The project is available from source. Its current package name is chart-ts; @bloxwap/chart is not yet published on npm.
Run the demo
Use Node.js 24 or later to build the library, and Bun to run the demo server.
git clone https://github.com/bloxwap/chart.git
cd chart
npm ci
npm run build
npm run demoOpen localhost:8641/demo to explore the chart.
Use it in your app
Pass a canvas to createChart and supply your own candle data: time, open, high, low, and close, with optional volume. Timestamps use Unix seconds.
Use setData to replace the series or appendData to update a candle. Your app provides market data and connects pointer, resize, and zoom events. Call destroy when the chart is removed.
The repository README covers configuration, indicators, and drawings.