HQChart vs KLineChart
A data-driven comparison of two JavaScript financial charting libraries: popularity, development activity, licensing and installation. Updated .
K-line and stock charts with a technical indicator scripting engine, for web pages and WeChat mini programs.
Lightweight, highly customizable candlestick (k-line) chart with zero dependencies and mobile support.
Key differences
- KLineChart has 1.2× as many GitHub stars as HQChart (4.2K vs 3.4K).
- KLineChart had more development activity over the last 12 months: 267 commits vs 106.
- KLineChart is downloaded 9.6× as often on npm (51.9K vs 5.4K per week).
- Both are released under the Apache-2.0 license.
- HQChart is written primarily in JavaScript, KLineChart in TypeScript.
- HQChart is the older project: its repository was created in 2018, KLineChart's in 2019.
By the numbers
- HQChart
- KLineChart
Show data as a table
| Metric | HQChart | KLineChart |
|---|---|---|
| GitHub stars | 3,410 | 4,211 |
| npm downloads / week | 5,376 | 51,877 |
| Commits, last 12 months | 106 | 267 |
| Contributors | 6 | 39 |
| Forks | 837 | 1,006 |
Development activity
Commits per month to each default branch, last 12 complete months.
- HQChart
- KLineChart
Show data as a table
| Month | HQChart | KLineChart |
|---|---|---|
| Oct 2025 | 11 | 2 |
| Nov 2025 | 5 | 29 |
| Dec 2025 | 11 | 0 |
| Jan 2026 | 8 | 1 |
| Feb 2026 | 3 | 0 |
| Mar 2026 | 12 | 23 |
| Apr 2026 | 10 | 3 |
| May 2026 | 15 | 39 |
| Jun 2026 | 7 | 20 |
| Jul 2026 | 16 | 65 |
| Aug 2026 | 8 | 42 |
| Sep 2026 | 0 | 43 |
Side by side
| Attribute | HQChart | KLineChart |
|---|---|---|
| Description | K-line and stock charts with a technical indicator scripting engine, for web pages and WeChat mini programs. | Lightweight, highly customizable candlestick (k-line) chart with zero dependencies and mobile support. |
| Category | JavaScript financial charting libraries | JavaScript financial charting libraries |
| License | Apache-2.0 | Apache-2.0 |
| Language | JavaScript | TypeScript |
| Status | Active | Active |
| Latest release | v1.11464 () | v10.0.3 () |
| Last commit | ||
| Repository created | ||
| Open issues | 13 | 30 |
| Install | npm install hqchart | npm install klinecharts |
Which should you choose?
Popularity and activity are only part of the story. Consider which ecosystem you work in, the chart types and interactions you need, how much data you render, and whether the license fits your project. Both tool pages list alternatives if neither is quite right.
-
HQChart
K-line and stock charts with a technical indicator scripting engine, for web pages and WeChat mini programs.
-
KLineChart
Lightweight, highly customizable candlestick (k-line) chart with zero dependencies and mobile support.