KLineChart is a dependency-free canvas candlestick chart library for web and mobile, with indicators, drawing tools, and TypeScript types.
Overview
KLineChart is a lightweight k-line (candlestick) chart built with HTML5 canvas for financial and trading interfaces. It ships with no third-party runtime dependencies and is sized for small bundle footprint under gzip.
Developers integrate it via npm or yarn, or load builds from CDNs such as unpkg and jsDelivr. Documentation covers online usage and local doc builds requiring Node.js. Built-in candlestick types, coordinate axes, technical indicators, and drawing overlays address common market chart needs.
Styling and behavior are adjustable through configuration and APIs, including extensions for custom indicators and overlays. The project highlights mobile browser support with touch-oriented interaction. TypeScript declaration files are provided.
Related projects offer a richer demo application, a higher-level Pro chart product, extensions, and a data aggregator for building candle periods from trades.
Key features
- Canvas candlestick rendering
- Zero declared dependencies
- Built-in technical indicators
- Drawing and overlay models
- Mobile browser support
- TypeScript type definitions
- npm yarn and CDN install
- Configurable styles and APIs
Use cases
- Trading terminal charts
- Broker H5 quote pages
- Embedded finance dashboards
- Multi-symbol quote boards
- Backtest visualization panels