Skip to content
JS
Package

@antv/g2

the Grammar of Graphics in Javascript

v5.4.8, 6 Jan 2026MITESM + CommonJSTypes: BundledAnimationCharts and data visualisation
$ npm install @antv/g2

Key numbers

As of 25 Sept 2026
Weekly downloads
270k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
12
Direct, from package.json
Last release
8 months ago
v5.4.8
GitHub stars
12.6k
1.7k forks
Open issues / PRs
174 / 8
Contributors
-
Commits, last 52 weeks
89

No weekly download data in the snapshot.

269,975 downloads last week, 1,165,187 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
5.4.8, 6 Jan 20268 months ago
First published
-
Last push to GitHub
24 Sept 20261 day before the snapshot
Repository archived
No
Open issues
174
Open pull requests
8
Commits, last 52 weeks
89
Dependents on npm
335

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
8.4 MB
Dependencies (12)
flrupdfast@antv/g@antv/expr@antv/util@antv/coord@antv/scale@antv/vendor@antv/g-canvas@antv/component@antv/event-emitter@antv/g-plugin-dragndrop
npm install @antv/g2

CDN

jsDelivr: 18.7m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@antv/g2@5.4.8/
  • unpkghttps://unpkg.com/@antv/g2@5.4.8/
  • esm.shhttps://esm.sh/@antv/g2@5.4.8
PackageWeekly downloadsGzipLast releaseModuleComparison
liveline111.8k-6 months agoESM + CommonJS-
react-move80.3k-5 years agoESM + CommonJS-
konva1.9m-1 day agoESM only-
super-animejs23k-7 years agoESM + CommonJS-
canvas-confetti6m-11 months agoESM + CommonJS-
d3-graphviz41.7k-2 years agoESM only-
malevic18.2k-22 days agoESM + CommonJS-
animejs746.6k-3 months agoESM + CommonJS-
Sources: npm registry, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.