G2
An interactive and responsive charting library based on the grammar of graphics, maintained by Alibaba.
- Active
- MIT
- TypeScript
- JavaScript charting libraries
- GitHub stars
- 12.6K#51 in the directory
- npm downloads / week
- 385.8K
- Commits, last 12 months
- 88
- Contributors
- 218
- Last commit
- Latest release
- v5.4.8Jan 6, 2026
Overview
G2 is an open-source JavaScript charting library released under the MIT license. Its GitHub repository has 12,631 stars, 1,660 forks, and 218 contributors. It is actively developed with 88 commits in the last 12 months. The latest release, v5.4.8, was published on Jan 6, 2026. On npm it is downloaded about 385.8K times per week.
Its GitHub description: ๐ The concise and progressive visualization grammar.
GitHub topics: visualizationgrammargraphicscanvassvginteractionanimationwebglcharthacktoberfest
Install
Development activity
Commits per month to the default branch over the last 12 complete months.
Show data as a table
| Month | Commits |
|---|---|
| Oct 2025 | 14 |
| Nov 2025 | 24 |
| Dec 2025 | 16 |
| Jan 2026 | 6 |
| Feb 2026 | 2 |
| Mar 2026 | 5 |
| Apr 2026 | 9 |
| May 2026 | 3 |
| Jun 2026 | 1 |
| Jul 2026 | 1 |
| Aug 2026 | 0 |
| Sep 2026 | 7 |
Popularity among JavaScript charting libraries
Show data as a table
| Tool | Stars |
|---|---|
| Chart.js | 67,733 |
| Apache ECharts | 67,449 |
| Plotly.js | 18,355 |
| Lightweight Charts | 17,473 |
| ApexCharts | 15,169 |
| Frappe Charts | 15,088 |
| G2 | 12,631 |
Alternatives to G2
-
Chart.js
Charts with the canvas tag.
-
Apache ECharts
Highly customizable and interactive charts ready for big datasets.
-
Plotly.js
Powerful declarative library with support for 20 chart types.
-
Lightweight Charts
Performant HTML5 canvas financial charts, from TradingView.
-
ApexCharts
Modern & Interactive SVG Charts.
-
Frappe Charts
Simple, responsive SVG charts with zero dependencies.
G2 FAQ
Is G2 open source?
Is G2 still maintained?
How do I install G2?
npm install @antv/g2.What are the best alternatives to G2?
What language is G2 written in?
Data: GitHub API, npm. Updated Oct 4, 2026.