The concise and progressive visualization grammar.
English | 简体中文
G2 is named after Leland Wilkinson’s book The Grammar of Graphics and was profoundly inspired by it in the very beginning. Here are some resources you can begin with:
G2 is usually installed via a package manager such as npm or Yarn.
$ npm install @antv/g2$ yarn add @antv/g2The Chart object then can be imported from G2.
…If all goes well, you can get the following lovely bar chart!
This project exists thanks to all the people who contribute.
And thank you to all our backers!
Bairui Su, Zhiwei Wang, Zhifeng Lin, Xiaojuan Liao, Zihan Zhou, Minfeng Zhu, Wei Chen. G2: A customizable web-based framework for authoring interactive visualizations. Visual Informatics, 2026.
@article{su2026g2,
author={Bairui Su, Zhiwei Wang, Zhifeng Lin, Xiaojuan Liao, Zihan Zhou, Minfeng Zhu, Wei Chen},
title={G2: A customizable web-based framework for authoring interactive visualizations},
journal={Visual Informatics},
year={2026},
url={https://doi.org/10.1016/j.visinf.2026.100307}
}MIT@AntV.
[Bug]: Axis中关于label的auto*配置,与Slider的配置冲突。导致Slider配置values之后,Axis的label相关配置失效。
[Docs]: 缺少「坐标系- radar」文档
[Feat]: 优化坐标轴轴线在存在正负数据时的表现
[Feat]: 建议支持“曲界线柱状图/相态碰撞判定”机制 (Curved-Boundary Phase Bar Spec)
[Bug]: 图表布局中padding自动计算的尺寸溢出了
[Bug]: 图例与正图中的点 shape 不一致
[Bug]: 仪表盘把Y轴改到内侧后,轴刻度是反的
[Bug]: 仪表盘默认效果是靠上的,通过margin调整位置,坐标轴如果使用inner,坐标轴位置会错乱
[Bug]: 仪表盘调整角度不生效
[Bug]: 双轴图的图例分类异常