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

npm
npm install @antv/g2
v5.4.8

Development activity

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

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

Popularity among JavaScript charting libraries

GitHub stars for G2 and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
Chart.js67,733
Apache ECharts67,449
Plotly.js18,355
Lightweight Charts17,473
ApexCharts15,169
Frappe Charts15,088
G212,631

Alternatives to G2

  • Chart.js

    Charts with the canvas tag.

    67.7K starsJavaScriptMIT

  • Apache ECharts

    Highly customizable and interactive charts ready for big datasets.

    67.4K starsTypeScriptApache-2.0

  • Plotly.js

    Powerful declarative library with support for 20 chart types.

    18.4K starsJavaScriptMIT

  • Lightweight Charts

    Performant HTML5 canvas financial charts, from TradingView.

    17.5K starsTypeScriptApache-2.0

  • ApexCharts

    Modern & Interactive SVG Charts.

    15.2K starsJavaScriptOther

  • Frappe Charts

    Simple, responsive SVG charts with zero dependencies.

    15.1K starsJavaScriptMIT

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 88 commits in the last 12 months and the latest commit 11 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 Oct 4, 2026.