# G2

> An interactive and responsive charting library based on the grammar of graphics, maintained by Alibaba.

- Category: [JavaScript charting libraries](https://awesomedataviz.com/categories/javascript-charting-libraries/)
- Website: https://g2.antv.antgroup.com
- Repository: https://github.com/antvis/G2
- License: MIT
- Language: TypeScript
- Status: Active (commits in the last 90 days)
- GitHub stars: 12,631
- Commits in the last 12 months: 88
- Contributors: 218
- Last commit: Sep 23, 2026
- Latest release: v5.4.8 (Jan 6, 2026)
- Install (npm): `npm install @antv/g2`, 385.8K downloads per week
- Topics: Grammar of graphics libraries

## 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.

## Alternatives

- [Chart.js](https://awesomedataviz.com/tools/chart-js/): Charts with the canvas tag. (67.7K stars)
- [Apache ECharts](https://awesomedataviz.com/tools/echarts/): Highly customizable and interactive charts ready for big datasets. (67.4K stars)
- [Plotly.js](https://awesomedataviz.com/tools/plotly-js/): Powerful declarative library with support for 20 chart types. (18.4K stars)
- [Lightweight Charts](https://awesomedataviz.com/tools/lightweight-charts/): Performant HTML5 canvas financial charts, from TradingView. (17.5K stars)
- [ApexCharts](https://awesomedataviz.com/tools/apexcharts/): Modern & Interactive SVG Charts. (15.2K stars)
- [Frappe Charts](https://awesomedataviz.com/tools/frappe-charts/): Simple, responsive SVG charts with zero dependencies. (15.1K stars)

Source: https://awesomedataviz.com/tools/g2/ · Data updated 2026-10-04 · Content: CC BY 4.0, Awesome Dataviz (https://awesomedataviz.com).
