# klinecharts/KLineChart

📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.（可高度自定义的轻量级k线图，无第三方依赖，支持移动端）

Repository: https://github.com/klinecharts/KLineChart
Canonical: https://ross.abutalabs.com/products/klinechart
Homepage: https://klinecharts.com/
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: kline, time-line, candlestick, canvas, stock, chart, exchange, finance, klinechart, stockchart, technical-indicators
Last push: 2026-08-13T14:56:03+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 96, longevity 100
- inputs: {"age_days": 2663, "days_push": 20, "days_rel": 28, "gap_med": 19.0, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4092, forks 993 (observed 2026-08-28T04:08:34.626134+00:00)

## What it is
KLineChart is a lightweight, zero-dependency JavaScript/TypeScript library for rendering highly customizable candlestick (k-line) financial charts using HTML5 canvas. It ships with built-in technical indicators, drawing tools, multiple chart types and coordinate systems, and is optimized for both desktop and mobile browsers.

## Use cases
- render candlestick charts for a crypto exchange web app
- build a stock trading terminal with technical indicators
- embed a lightweight k-line chart in a mobile H5 trading page
- create custom indicators and drawing overlays for market analysis
- visualize OHLCV time-series data in a quant research dashboard
- add real-time price charts to a brokerage or finance application

## When to choose
- you need a lightweight, zero-dependency candlestick charting library for web or mobile
- you want built-in technical indicators and drawing tools out of the box
- you need deep customization of indicators, overlays, styles, and axes
- you are building trading terminals, market dashboards, or finance apps in JavaScript/TypeScript

## When to avoid
- you need charts for non-financial data like bar, pie, or general-purpose visualizations
- you require server-side rendering of charts
- you need a full standalone charting application rather than an embeddable library
- your stack is native mobile (iOS/Android) without a web view

## Facets
- artifact type: library
- maturity: active
- function: data-visualization, charts
- domain: data-visualization, fintech, web-development, frontend
- platform: browser, cross-platform
- tags: candlestick-chart, k-line, financial-charting, technical-indicators, canvas, trading, zero-dependency, mobile-support, typescript, nodejs

## Member repositories
- klinecharts/KLineChart (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:34.626134+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:20.714310+00:00, confidence not recorded.
  - readme: https://github.com/klinecharts/KLineChart (fetched 2026-08-28T04:08:34.626134+00:00, sha abb9f677bf24)
  - homepage: https://klinecharts.com/ (fetched 2026-08-29T09:15:22.573157+00:00, sha 90d830a7e58b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
