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

npm
npm install @antv/g2
v5.4.8

Development activity

Commits per month to the default branch over the last 12 complete months.

0102030 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep Oct
0102030 Nov 2025 Feb 2026 May Aug
84 commits from Nov 2025 to Oct 2026.
Show data as a table
G2 commits per month
MonthCommits
Nov 202524
Dec 202516
Jan 20266
Feb 20262
Mar 20265
Apr 20269
May 20263
Jun 20261
Jul 20261
Aug 20260
Sep 20267
Oct 202610

Popularity among JavaScript charting libraries

GitHub stars for G2 and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
Chart.js67,803
Apache ECharts67,746
Plotly.js18,384
ApexCharts15,192
Frappe Charts15,102
Chartist.js13,469
G212,667

Alternatives to G2

  • Chart.js

    Charts with the canvas tag.

    67.8K starsJavaScriptMIT

  • Apache ECharts

    Highly customizable and interactive charts ready for big datasets.

    67.7K starsTypeScriptApache-2.0

  • Plotly.js

    Powerful declarative library with support for 20 chart types.

    18.4K starsJavaScriptMIT

  • ApexCharts

    Modern & Interactive SVG Charts.

    15.2K starsJavaScriptOther

  • Frappe Charts

    Simple, responsive SVG charts with zero dependencies.

    15.1K starsJavaScriptMIT

  • Chartist.js

    Responsive charts with great browser compatibility.

    13.5K starsTypeScriptMIT

G2 FAQ

Is G2 open source?

Yes. G2 is released under the MIT license, and its source code is on GitHub.

Is G2 still maintained?

Yes. G2 is actively developed, with 84 commits in the last 12 months and the latest commit 5 days ago.

How do I install G2?

From npm: npm install @antv/g2.

What are the best alternatives to G2?

The most popular alternatives listed in JavaScript charting libraries are Chart.js, Apache ECharts, and Plotly.js. See the full ranking.

What language is G2 written in?

G2 is primarily written in TypeScript, according to GitHub.

Data: GitHub API, npm. Updated Nov 18, 2026.