Lightweight Charts
Performant financial charts library built with HTML5 canvas for trading applications.
Charts and data visualisation npm Apache-2.0
Used in agent projects
38
0.3% of 12,697 public repos built with AI coding agents
Rank in charts and data visualisation
#10 of 16
by use in those projects
Downloads
1.2M
npm, last 7 days, lightweight-charts
GitHub stars
17.5K
last push Oct 9, 2026
How Lightweight Charts is used
Lightweight Charts is a dependency in 38 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #10 of 16 in charts and data visualisation. The most used alternative there is Recharts. Projects that use it most often also use viem (57.9%), Tailwind CSS (86.8%), Recharts (47.4%).
Often used with Lightweight Charts
| viem | 57.9% of Lightweight Charts projects · 4.7× more than average |
|---|---|
| Tailwind CSS | 86.8% of Lightweight Charts projects · 2.5× more than average |
| Recharts | 47.4% of Lightweight Charts projects · 5.8× more than average |
| React | 89.5% of Lightweight Charts projects · 2.1× more than average |
| Lucide React | 60.5% of Lightweight Charts projects · 3.1× more than average |
| TanStack Query | 44.7% of Lightweight Charts projects · 4.7× more than average |
| Next.js | 63.2% of Lightweight Charts projects · 2.8× more than average |
| Axios | 42.1% of Lightweight Charts projects · 4.2× more than average |
By coding agent
| Claude Code | 0.4% of projects set up for it |
|---|---|
| Cursor | 0.4% of projects set up for it |
Share of public repos configured for each agent that list Lightweight Charts as a dependency.
Install
| Package | npm install lightweight-charts |
|---|---|
| Main stacks | Next.js (23), TypeScript / JavaScript (14), Python (1) |
| Example projects | nirholas/three.ws, ask-the-hive/the-hive, BabylonSocial/babylon, m8s-lab/pump-fun-frontend, riccorohl/trading-journal |
Alternatives to Lightweight Charts
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Recharts npm Composable React component library for building responsive charts. |
1,037 (8.2%) | 56.3M | 27.6K | MIT |
| Matplotlib pypi Python library for creating static, animated and interactive plots and visualizations. |
194 (1.5%) | 39.3M | 23.3K | — |
| Chart.js npm Simple HTML5 canvas-based charting library for creating interactive data visualizations. |
165 (1.3%) | 12.7M | 67.7K | MIT |
| React Chart.js 2 npm React components wrapper for Chart.js enabling data visualization with charts. |
111 (0.9%) | 4.4M | 6,937 | MIT |
| Plotly pypi Interactive data visualization library for Python with rich chart and dashboard support. |
74 (0.6%) | 12.5M | 18.8K | — |
| Seaborn pypi Statistical data visualization library built on matplotlib with rich plot types. |
66 (0.5%) | 6.8M | 14.1K | — |
| Mermaid npm Markdown-like syntax for creating flowcharts, diagrams, and visualizations programmatically. |
65 (0.5%) | 17.7M | 90.6K | MIT |
| D3.js npm JavaScript library for creating data-driven documents with powerful data visualization capabilities. |
63 (0.5%) | 22.2M | 114K | ISC |