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.7K#52 in the directory
- npm downloads / week
- 451.9K
- Commits, last 12 months
- 84
- Contributors
- 219
- 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,667 stars, 1,662 forks, and 219 contributors. It is actively developed with 84 commits in the last 12 months. The latest release, v5.4.8, was published on Jan 6, 2026. On npm it is downloaded about 451.9K 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 |
|---|---|
| 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 |
| Oct 2026 | 10 |
Popularity among JavaScript charting libraries
Show data as a table
| Tool | Stars |
|---|---|
| Chart.js | 67,803 |
| Apache ECharts | 67,746 |
| Plotly.js | 18,384 |
| ApexCharts | 15,192 |
| Frappe Charts | 15,102 |
| Chartist.js | 13,469 |
| G2 | 12,667 |
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.
-
ApexCharts
Modern & Interactive SVG Charts.
-
Frappe Charts
Simple, responsive SVG charts with zero dependencies.
-
Chartist.js
Responsive charts with great browser compatibility.
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 Nov 18, 2026.