HQChart vs Lightweight Charts
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.
Performant HTML5 canvas financial charts, from TradingView.
Key differences
- Lightweight Charts has 5.1× as many GitHub stars as HQChart (17.5K vs 3.4K).
- Lightweight Charts had more development activity over the last 12 months: 331 commits vs 106.
- Lightweight Charts is downloaded 254× as often on npm (1.4M vs 5.4K per week).
- Both are released under the Apache-2.0 license.
- HQChart is written primarily in JavaScript, Lightweight Charts in TypeScript.
- HQChart is the older project: its repository was created in 2018, Lightweight Charts's in 2019.
By the numbers
- HQChart
- Lightweight Charts
Show data as a table
| Metric | HQChart | Lightweight Charts |
|---|---|---|
| GitHub stars | 3,410 | 17,476 |
| npm downloads / week | 5,376 | 1,368,014 |
| Commits, last 12 months | 106 | 331 |
| Contributors | 6 | 58 |
| Forks | 837 | 2,632 |
Development activity
Commits per month to each default branch, last 12 complete months.
- HQChart
- Lightweight Charts
Show data as a table
| Month | HQChart | Lightweight Charts |
|---|---|---|
| Oct 2025 | 11 | 13 |
| Nov 2025 | 5 | 8 |
| Dec 2025 | 11 | 17 |
| Jan 2026 | 8 | 8 |
| Feb 2026 | 3 | 16 |
| Mar 2026 | 12 | 2 |
| Apr 2026 | 10 | 21 |
| May 2026 | 15 | 12 |
| Jun 2026 | 7 | 13 |
| Jul 2026 | 16 | 6 |
| Aug 2026 | 8 | 11 |
| Sep 2026 | 0 | 204 |
Side by side
| Attribute | HQChart | Lightweight Charts |
|---|---|---|
| Description | K-line and stock charts with a technical indicator scripting engine, for web pages and WeChat mini programs. | Performant HTML5 canvas financial charts, from TradingView. |
| 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 () | v5.2.1 () |
| Last commit | ||
| Repository created | ||
| Open issues | 13 | 112 |
| Install | npm install hqchart | npm install lightweight-charts |
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.
-
Lightweight Charts
Performant HTML5 canvas financial charts, from TradingView.
More comparisons
- KLineChart vs Lightweight Charts
- Lightweight Charts vs TechanJS
- Lightweight Charts vs React Financial Charts
- HQChart vs KLineChart
- HQChart vs TechanJS
- HQChart vs React Financial Charts
- dxcharts-lite vs Lightweight Charts
- Chart.js vs Lightweight Charts
- Apache ECharts vs Lightweight Charts
- Lightweight Charts vs Plotly.js
- ApexCharts vs Lightweight Charts
- Lightweight Charts vs TradeCanvas