# antvis/G2

📊 The concise and progressive visualization grammar.

Repository: https://github.com/antvis/G2
Canonical: https://ross.abutalabs.com/products/g2
Homepage: https://g2.antv.antgroup.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: visualization, grammar, graphics, canvas, svg, interaction, animation, webgl, chart, hacktoberfest
Last push: 2026-07-15T06:47:01+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 65, longevity 100
- inputs: {"age_days": 3751, "days_push": 49, "days_rel": 239, "gap_med": 19, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12595, forks 1661 (observed 2026-08-28T04:10:59.391662+00:00)

## What it is
G2 is a JavaScript/TypeScript visualization grammar library implementing the Grammar of Graphics, supporting canvas, SVG, and WebGL rendering. It provides a declarative API for building interactive charts for dashboards, data exploration, and storytelling.

## Use cases
- build interactive dashboards with charts
- create data visualizations in javascript
- declarative charting library for web apps
- explore data visually in the browser
- add animated and interactive charts to a web app
- implement grammar of graphics charts

## When to choose
- you want a flexible grammar-based charting approach rather than fixed chart types
- you need interactive, animated charts rendered via canvas, SVG, or WebGL
- you want a declarative API with high extensibility for custom marks, scales, and transforms

## When to avoid
- you need a simple high-level chart library with opinionated defaults and minimal configuration
- you are building non-web environments like native mobile or server-side image generation without a DOM/canvas
- your team prefers imperative chart APIs like ECharts-style option trees

## Facets
- artifact type: library
- maturity: active
- function: data-visualization, charts, animation
- domain: data-visualization, frontend, web-development, analytics
- platform: browser
- tags: grammar-of-graphics, charting, canvas, svg, webgl, declarative-api, antv, nodejs, javascript, typescript

## Member repositories
- antvis/G2 (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.391662+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:56.336129+00:00, confidence not recorded.
  - readme: https://github.com/antvis/G2 (fetched 2026-08-28T04:10:59.391662+00:00, sha f5e32b3acb48)
  - homepage: https://g2.antv.antgroup.com (fetched 2026-08-29T08:10:47.780099+00:00, sha b9d1e969b195)
  - registry_npm: https://registry.npmjs.org/g2 (fetched 2026-08-29T08:10:47.789394+00:00, sha 95a272ddece1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
