Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@antv/g2plot

antvis394.7kMIT2.4.33TypeScript support: included

An interactive and responsive charting library

chart, plot, antv

readme

English | 简体中文

G2Plot

A chart library that is a secondary encapsulation based on the G2 4.x version.

Version NPM downloads Latest commit build Status coverage Percentage of issues still open Average time to resolve an issue

📢 The new version G2 v5 has been released. There are no plans to encapsulate G2Plot v3 based on G2 v5 in the future, you can use Ant Design Charts instead.

WebsiteQuick StartBlogAntV ThemeSet

G2Plot is an interactive and responsive charting library. Based on the grammar of graphics, you can easily make superior statistical charts through a few lines of code.


✨ Features

📦 Pretty & Lightweight

With AntV design principles of data visualization, G2Plot provides standard and elegant visual styles as well as neat config options.

📊 Responsive

G2Plot guarantees the readability of the charts in different sizes and data.

🔳 Storytelling

With the feature of layers, charts can be grouped, nested or linked to do exploratory analysis and expressive storytelling.

📦 Installation

$ npm install @antv/g2plot

🔨 Usage

<div id="container"></div>
import { Bar } from '@antv/g2plot';

const data = [
  { year: '1951 年', sales: 38 },
  { year: '1952 年', sales: 52 },
  { year: '1956 年', sales: 61 },
  { year: '1957 年', sales: 145 },
  { year: '1958 年', sales: 48 },
];

const bar = new Bar('container', {
  data,
  xField: 'sales',
  yField: 'year',
  seriesField: 'year',
});

bar.render();

🤝 How to Contribute

Your contributions are always welcome! Please Do have a look at the issues first.

To become a contributor, please follow our contributing guide.

Thanks goes to these wonderful people (emoji key):


Visiky

💻

hustcc

💻

Joel Alan

💻

刘珍莹

💻

zqlu

💻

arcsin1

💻

被雨水过滤的空气

💻

banli

💻

xi li

💻

DarrenPei

💻

MiniPear

💻

connono

💻

于向前

💻

afc163

💻

Martin Jul

💻

jhwong

💻

Jingsong Gao

💻

Mr小刘

💻

ntscshen

💻

yiminanci

💻

ai-qing-hai

💻

xrkffgg

💻

Dawnlck

💻

Karis

💻

Mayne

💻

Plortinus

💻

Shanjie Chen

💻

Yang Libin

💻

beewolf233

💻

lqzhgood

💻

neoddish

💻

stack-stark

💻

vector

💻

嘤嘤嘤

💻

琚致远

💻

14

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

ChartCube - Online chart making tool based on G2Plot.

License

MIT

changelog

2.4.33 (2025-04-03)

Tests

2.4.33 (2025-04-03)

Chores
Documentation Changes
Bug Fixes
Other Changes

2.4.32 (2024-07-30)

Chores
Documentation Changes
Bug Fixes
  • line,area,radar label style with callback (02bf66f3)
Other Changes

2.4.31 (2023-05-10)

Chores
  • upgrade version of @antv/component to [0.8.34] for dist build.

2.4.30 (2023-05-05)

  • upgrade version of @antv/component to [0.8.33] for dist build.

2.4.29 (2023-04-03)

2.4.27 (2023-03-16)

Chores
New Features
  • custom shape: support custom shape for area/waterfall/radial-bar/rose/sunburst plot (#3495) (65067713)
Bug Fixes
  • column: 修复柱状图拆分维度为空字符串时,错误显示了 xField 作为 title 的问题 (#3494) (dc6679ff)

2.4.26 (2023-03-03)

Documentation Changes
Bug Fixes
  • Sankey: insufficient pass-in parameters for the callback function of edgeStyle (#3483) (0a4f376b)

2.4.25 (2023-02-06)

Chores
Documentation Changes
New Features
Bug Fixes
  • Liquid: should render wave only when percent > 0 (#3455) (6fb1e4d0)
Performance Improvements
  • word-cloud: add willReadFrequently option when canvas getContext (#3438) (ab1175ba)

2.4.23 (2022-12-07)

New Features

2.4.22 (2022-11-04)

Bug Fixes

2.4.21 (2022-08-26)

Documentation Changes
Demo
  • bar: 添加动态条形图 (#3162) (59d85a5b)
  • custom Shape: 添加 Shape 文档 以及 添加 三个 自定义 Shape demo (#3246) (ea0bbfab)
Bug Fixes
  • animation: 动画添加回调, 可以给不同的 形状添加动画 (#3275) (c6b941a0)
  • box: 箱型图 添加 annotation 配置 (#3317) (fecd1e38)
  • funnel: 当 next 为 0 时,应该显示 0% 而不是 -∞ (#3313) (e3a2ed86)
  • histogram: 直方图 histogram 修复不能关闭 legend 的问题 (#3284) (35c9a08d)
  • base: rawFields 添加回调,对 geometry color shape 进行了区分 (#3288) (da3d1a64)
  • heatmap:
    • 修复色力图 coordinate 部分配置不起效 和 配置了 refect coordinate 失效的问题 (#3294) (45d60d7f)
    • 添加 meta 中的最大最小值参数 可以控制最小显示参数 (#3272) (2800e724)
  • gauge: 仪表盘 percent 0 时,数据被过滤重新添加回来 (#3265) (dd090c29)
  • Chord: 修复弦图 label 样式不能修改的问题 (#3270) (bc5b2cf8)
  • progress: 迷你进度条重新修改 (#3268) (c15b9c20)
Other changes
  • test: g2plot label 延迟渲染 注释和增加延迟时间 到 test (#3264) (4bf3addd)

2.4.20 (2022-06-21)

Documentation Changes
  • demo: add a new demo about how to handle element multiple selected (#3253) (bcdd15ef)
New Features
  • interaction: support config brush start enable (4962d16c)

2.4.19 (2022-06-07)

Chores
Documentation Changes
Bug Fixes
  • bar: 修复条形图更新数据时, x y scale 没有交换问题 (2880e927)
  • bullet:
    • 修改子弹图单测 (#3241) (518baeb2)
    • 子弹图 添加单数值 range/measures 、 多 target 数据修改兼容 (#3231) (3d076dee)

2.4.18 (2022-06-02)

Bug Fixes
  • pie: 修复饼图 title statistic 没有使用 meta formatter (165165cc)
Tests
  • pie: add test case for pie statistic (43402116)

2.4.17 (2022-05-24)

New Features
  • sankey: sankey support not to display node and edge which is null (89a4a14b)

2.4.16 (2022-04-22)

Chores
  • website: remove data-set & add bundle-analyser (#3175) (2c2a6c5e)
Documentation Changes
New Features
  • support useDeferredLabel to improve performance (#3190) (a9b19463)
Bug Fixes

2.4.15 (2022-04-01)

New Features
  • coordinate: 支持 coordinate 坐标转换配置 (#3172) (de389d3b)

2.4.14 (2022-03-31)

Chores
Documentation Changes
  • mix: 完善文档,增加定制股票图 demo: https://g2plot.an tv.vision/zh/examples/plugin/multi-view#customized-stock (fc41099c)
New Features
  • mix:
    • mix 复合图表支持统一在顶层配置,增加 top、slider、annotations 等属性配置 (b2e6b96c)

2.4.13 (2022-03-28)

Chores
New Features

2.4.12 (2022-03-23)

Chores
New Features
  • bidirectional-bar: 对称条形图支持主题配置 (69160c4f)

2.4.11 (2022-03-22)

New Features

2.4.10 (2022-03-10)

Documentation Changes
New Features
  • funnel: 漏斗图增加关闭分面 title 的展示 (d10c30e7)

2.4.9 (2022-03-03)

Documentation Changes
New Features
Bug Fixes
  • annotations: 修复 addAnnotations 在双轴图等具有分 view 图表失效的问题 (#3119) (76ff184f)

2.4.8 (2022-01-30)

Chores
  • add pr-auto-labels & auto-release-generate (84f17e99)
Continuous Integration
Documentation Changes
New Features
  • sankey: 分别对 node 和 edge 添加 交互属性配置 (#3081) (adc88836)
Bug Fixes
  • dual-axes: 修复双轴图 bottom 统一的问题 #2930 (#3096) (538b6dd0)
  • sankey: 修复桑基图单测问题 (4e1e870a)
  • column: 修复百分比柱状图 总和为零时的 bug (#3089) (6663aed6)

2.4.7 (2022-01-14)

New Features
  • line: 折线图支持 scrollbar (#3076) (aa01ce37)
  • legend: 图例增加 radio 按钮实现正选 focus 功能 (#3074) (27838663)
Bug Fixes

2.4.6 (2022-01-04)

Documentation Changes
New Features
  • scatter: 散点图气泡图添加 slider 缩略轴 scrollbar 滚动条 配置 (#3064) (c867afb0)
  • 增加 sortZIndex 参数 (#3060) (e16d29d1)

2.4.5 (2021-12-28)

New Features
  • area: 面积图支持 line 独立设置 state,避免填充颜色出现问题 (#3053) (54342e6f)

2.4.1 (2021-12-14)

Bug Fixes
  • bar: 修复条形图 xAxis、yAxis 配置互相影响 (d9684d1b)

2.4.0 (2021-12-09)

Documentation Changes
New Features
Bug Fixes
Refactors
  • bar: 条形图重构,不需要反转数据 调整下坐标系即可. Breaking-changes maybe existed. (#2914) (b1d8f47b)

2.3.40 (2021-11-12)

Documentation Changes
New Features
Bug Fixes
  • 修复文档错误 导致网站部署问题 (ce2a4ea9)

2.3.39 (2021-10-23)

Documentation Changes
New Features
  • line: 折线图支持区域填充 (#2939) (45cd61d8)
  • customInfo: 折线图、面积图支持 customInfo 配置 (#2937) (71b23a4d)

2.3.38 (2021-10-21)

Documentation Changes
  • 添加 supportCSSTransform 参数的使用文档 (#2922) (d5ce6666)
New Features
Bug Fixes
  • pie: 修复饼图中心文本交互问题 (#2923) (c65f6ab6)
  • 修复个性化标签饼图 demo 预览图不显示的问题 (#2932) (bf846715)
  • bidirection-bar: 修复对称条形图 label 位置设置和默认配置 (#2921) (7f0ecba7)
  • area: 修复面积图中折线没有传入 seriesField (#2926) (f0967409)

2.3.37 (2021-10-16)

Documentation Changes
  • demo 增加说明 (ee5bc822)
  • heatmap: 通过 iframe 嵌入语雀图表指引文档 (6a00f9b8)
New Features
  • venn:
    • 韦恩图交互增强(修复图例激活元素交互 & 增强 active、highlight、selected 交互) (#2911) (ed5b71e2)
    • 韦恩图颜色回调重构 (#2909) (c3694961)
  • sunburst:
    • 丰富旭日图交互, 点击中心可以上卷 (#2903) (a8758fac)
    • 旭日图增加 activeDepth 配置,允许配置默认展示的层级深度 (#2902) (b3920c9d)
Bug Fixes
  • box: 修复箱形图异常点 view 的 label 只能展示一个 (#2913) (994c75d3)
  • funnel: 漏斗图 do not mutable data (#2900) (d92443e1)

2.3.36 (2021-10-08)

Documentation Changes
  • funnel: 漏斗图转化率信息组件文档 api 补全 (#2894) (3a708220)
  • label: 补充 label position 配置的文档说明 (#2896) (379df35f)
New Features
  • gauge: 仪表盘支持自定义指示器 indicator (#2892) (e36296b1)
  • line: 修复折线图 marker 交互, 以及丰富折线图自定义 marker demo (#2895) (078a358a)
Bug Fixes
  • sankey: 桑基图节点顺序需要保证原序 (#2897) (5ad43b72)
  • funnel: 修复漏斗图数据为 0 时,出现 conversionTag 样式问题 (#2893) (6a0512b7)
  • 修复开启 animation 引发 state 样式延迟渲染,导致单测错误 (#2891) (0e8de058)
Refactors
  • gauge: 米轨仪表盘绘制方案改造 & 单测 (#2890) (cc8fa33d)

2.3.35 (2021-09-26)

Chores
Documentation Changes
  • label: 增加一个数据标签的 demo (#2875) (626a50cd)
  • progress: 完善了进度条 progressStyle 的回调方法描述文档 (#2863) (240bb18e)
  • 增加一个漏斗图分析 demo (#2848) (4b3143e6)
  • 增加一个饼图 demo(个性化标签饼图) (#2853) (7fb1542b)
  • changelog: 删除重复的 changelog (#2843) (f9433c01)

New Features

  • venn(interaction): 添加韦恩图 selected 和 active 的交互 (#2871) (bf4b248f)
Bug Fixes

2.3.33 (2021-09-09)

Documentation Changes
New Features
Bug Fixes

2.3.32 (2021-08-25)

Documentation Changes
New Features
Bug Fixes
  • funnel: 不将 label 的 layout 的 type 设置为 interval-adjust-position (#2817) (de2efd5e)

2.3.31 (2021-08-16)

Bug Fixes
  • dual-axes: 修复双轴图使用 color 回调时,legend marker 颜色丢失 (#2800) (a45dbdb4)
  • line: 修复无拆分时折线图 color 回调报错 (#2751) (4215408f)

2.3.30 (2021-08-13)

Documentation Changes
New Features
  • state: 支持多 view 图表,如:对称条形图、箱型图、小提琴图、mix 多图层图表等的状态设置和获取 (#2773) (c64270ea)
Bug Fixes
  • funnel: 修复尖底漏斗图最后一排错位 (#2793) (603d533f)
  • dual-axes: 修复双轴图 theme 设置覆盖 columnWidthRatio 设置 (#2791) (2dc2d962)
  • word-cloud: 修复词云图 legend 配置不起效 修复 词云图 color 回调缺少其他数据 (#2787) (ec47b760)
  • dual-axes: configure legend selected (#2784) (25fbe901)
  • dual-axes: 双轴图图例 legend 使用 symbol 的时候,颜色不能自动调整 (#2776) (93000e50)

2.3.29 (2021-08-09)

Documentation Changes
New Features
Bug Fixes
  • 修复错误 & 更新官网展示 github (#2767) (cc96c741)
  • sankey: 修复桑基图 rawFields 在 label & tooltip 处不生效 (#2756) (669f881d)
  • treemap 矩阵树图支持 color 回调中使用 rawFields (color function apply rawFields) (#2750) (e1c5974d)
  • line 修复折线图 smooth 状态下,最高点有时会绘制不正确 (#3546)(daf3b8a8)

2.3.28 (2021-07-30)

Documentation Changes
  • heatmap: 热力图补充密度热力图 🇭 说明:color、style callback 以及 state 不可用 (#2718) (d0055e1b)
  • 更新官网公告 & demo (ed3375b9)
New Features
Bug Fixes

2.3.27 (2021-07-21)

Documentation Changes
  • legend: 图例 itemName, itemValue 增加 style 回调 (#2712) (1b039b0b8)
Bug Fixes
  • histogram: binNumber 设置出错 (#2708) (46d27699)
  • percentage stacked column: 修复 百分比堆叠分组柱状 展示不对 的问题 (#2688) (08e17224)
  • 修复 玉珏图没有考虑 isStack 的情况 重新计算最大值 (#2685) (397d8641)
  • rose: 玫瑰图 legend 默认配置,不进行 offset 偏移 (#2683) (86e23094)
  • bullet: 修复子弹图 状态量 中 设置 fill 为渐变色时,报错 (#791) (70083c2d1)
  • legend: 修复图例容器大小无法设置问题 (#2711) (3fb32f087)
Refactors

2.3.26 (2021-07-07)

Documentation Changes
  • column: fix-2669, 新增堆叠的柱状图展示总数 label 的 demo (#2681) (1ab8c3a3)
New Features
  • sunburst: 旭日图增加一些字段元信息,如 同层级节点位置索引,祖先节点,儿子节点数量等 (#2679) (8c31012f)
  • connected-area: 联通区域支持样式配置 (#2667) (9a8e1e68)
Bug Fixes
  • legend: 修复 legend marker 回调设置,spacing 不生效(#2671) (026f5eb)

2.3.25 (2021-06-30)

Documentation Changes
New Features
  • drill-down: 优化下下钻的面包屑位置 (#2664) (81beae66)
Bug Fixes
  • scatter: when scatter data length = 1 and x is cat (#2661) (dba879ac)
  • scatter: 散点图刷选交互之后的 scale 处理 (#2649) (17e8f082)
  • funnel: funnel with empty data, #2616 (#2658) (ef797330)
  • bullet: 修复轴组件添加 max 时,子弹图 scale 呈现不正确问题 (#2639) (dd23da52)

2.3.24 (2021-06-16)

Chores
Documentation Changes
New Features
  • sunburst: 旭日图增加 ignoreParentValue 配置 (#2637) (203774f5)
Bug Fixes
Refactors
  • funnel: 支持尖底漏斗图以及样式设置 (#2634) (0882b32d)

2.3.23 (2021-06-09)

Chores
  • 网站展示实际版本(use real version) (#2552) (627f8f06)
Documentation Changes
New Features
Bug Fixes
  • #2572: 修复堆叠分组状图 tooltip 展示不正常 (只展示第一个小分组的数据) (#2576) (85bbcb24)
  • #2573: 修复雷达图设置 point state 状态样式不生效 (#2577) (50a815ab)
  • issue-2502: 修复对称条形图 axis 设置 (#2565) (025446be)
Refactors
  • drilldown: 矩阵树图下钻交互改造,旭日图支持下钻 (#2608) (8c5c3e2a)

2.3.20 (2021-05-13)

Documentation Changes
New Features
  • 柱条形图支持组间和组内 padding 的像素级设置 (#2539) (1c7d199d)
  • 支持上层 tree shaking (#2528) (7f4cd17d)
  • heatmap: 热力图主题色默认从 theme 中获取连续色板 (#2535) (4948f648)
  • sankey:
    • 桑基图支持配置 rawFields, 在节点和边上获取更多原始数据信息 (#2533) (60ab2f7b)
    • add nodeDraggable interaction configure (#2521) (6ae79bb7)
  • chord: 和弦图增加 state 通道 & 文档移除 color 配置 (#2527) (c23ef6c0)
Bug Fixes
  • 修改桑基图 的 来源字段 type 类型为 cat (#2513) (c2e0d531)
Other Changes
Refactors

2.3.19 (2021-04-26)

Documentation Changes
  • chord: 和弦图增加 examples 处的文档 (#2517) (1c43752c)
  • legend: 图例补全文档 (df6968ef)
  • 文档日常更新 & 网站导航增加周边生态 (#2509) (b216b5e5)
Bug Fixes
  • 升级官网主题 & 修复文档命名错误 (#2508) (50999c32)

2.3.18 (2021-04-12)

Chores
Documentation Changes
  • 文档错误 (#2500) (c5a83826)
  • 图表组件文档完善 (#2481) (081971de)
  • 完善图例文档 & 增加图表组件的示例导航 & 补充图例两个 demo (#2477) (0740b371)
  • 完善 axis 文档(含 title, line, tickLine, subTickLine 等) (#2460) (7a651f7e)
New Features
  • 为双轴图增加 setState 功能 (#2488) (61a3ed81)
  • options: 13+图表提供获取默认配置项的静态方法 (#2489) (f62ca2fd)
Bug Fixes
  • sankey: depth is not right (#2503) (e349e32d)
  • gauge-theme: 仪表盘主题需要放在第一个设置,否则设置主题会失效 (#2501) (cee9c17b)
  • issue-2486: 不直接引用 @antv/matrix-util, 使用 G2 的 Util (#2499) (84fd908b)
  • 尝试修复词云图单测 (#2471) (ed682f21)

2.3.17 (2021-03-24)

Documentation Changes
  • G2Plot Calendar: 补充组合图表 demo & 增加一个插件图表 (#2448) (772155db)
  • scrollbar: 补充滚动条滑块的高亮色文档 (#2449) (bfd9e24d)
  • label-line: 类型定义补全 (#2443) (33dfa3b1)
  • tooltip: 更新 tooltip 关于 marker 的文档 (#2439) (9836e08c)
New Features
  • liquid: 水波图支持跟随主题色 & 水波图支持 outline 配置样式 & 文档以及 demo 优化 (#2455) (04f2a66c)
  • scatter: 散点图支持 color 和 shape 同时映射图例字段 & 添加单测 (#2406) (c7b7724e)
  • area: 面积图支持 startOnZero (#2444) (1cdea551)
  • conversion-tag: 转化分析 tag 添加 elements 信息,方便业务上使用 (#2441) (706942a7)
Bug Fixes

2.3.16 (2021-03-17)

Documentation Changes
New Features
  • add coordinate attribute to heatmap (#2425) (55842a6b)
  • second-geometry: 辅助几何图形 point 支持独立设置 state style (#2429) (7d0a5301)
Bug Fixes

2.3.14 (2021-03-11)

Documentation Changes
New Features
  • 矩形树图:新增下钻面包屑指引 (#2386) (ff9a470)
  • feat(gauge): 仪表盘支持配置 style,支持圆角仪表盘 (#2395) (7a34182)
  • feat(gauge): gauge 支持像素级别设置宽度 (#2402) (e87ea30)
Bug Fixes
  • Fix/liquid shape bugs (#2396) (e416b44)
  • fix: bullet 的 target 支持回调函数处理 (#2397) (02d9942)
  • fix(#2375): 修复饼图中心文本交互没有使用 custom-html (#2413) (bb848cf)
  • fix(pie-tooltip): tooltip 默认设置 fields 和 formatter 只针对全 0 场景 (#2415) (85156c8)

2.3.13 (2021-03-02)

Chores
Documentation Changes
New Features
Bug Fixes
  • sankey: shape order same with data, layout space (#2354) (c86625ca)

2.3.12 (2021-02-23)

Documentation Changes
New Features
  • treemap layout optimize (#2337) (312bcdbd)
  • 雷达图新增 innerRadius、startAngle、endAngle (#2323) (11639171)
  • export default-options, you can use staticMethod to getDefaultOptions, like Plot.getDefaultOptions() (#2307) (8efbdd64)
  • radial-bar: add radial bar label adaptor (#2336) (2f0961b1)
  • state-style: 若干图表支持 state 设置样式 & 增加文档 (#2334) (f45d02bc)
Bug Fixes

2.3.11 (2021-02-03)

Documentation Changes
New Features
  • 双轴图新增 slider (#2287) (0276528d)
  • sankey: add nodeWidth, nodePadding options (#2295) (947889b3)
  • animation: 增加动画文档和 demo & 多图层图表支持分 view 动画 (#2291) (9e62cb91)

2.3.10 (2021-01-27)

New Features

  • feat(gauge): 支持配置米轨仪表盘 (#2271) (53ebbfa)
  • feat(treemap): 矩形树图增加下钻交互 (#2219) (9f206e3)
  • feat(pie): 饼图 geometry 默认对 elemenent 的 zIndex 进行反序 (#2266) (a5971b6)
  • feat(pie): 饼图支持动态更新数据,支持通过 Pie.getDefauletOptions() 获取默认配置项 (#2257) (47fa687)
Bug Fixes
  • issue-2264 修复瀑布图 formatter 不生效 (#2270) (6787c8b)
  • fix: 修复散点图 size 回调不生效 (#2263) (510c1b5)
  • fix: 饼图数据存在 NaN 时,浏览器崩溃 && 修复中心统计文本更新为 false,再更新为显示,样式丢失 (#2257) (47fa687)
Documentation Changes

2.3.9 (2021-01-20)

Documentation Changes
New Features
  • 多图层图表正式开放 (#2245) (963399ac)
  • 为 treemap 新增 rectstyle 和 hierarchyConfig 属性 (#2234) (bcd21431)
  • 重写子弹图 changeData 方法 && 添加单测 (#2221) (afb49a60)
  • 散点图支持动态更新数据 & 添加单测 (#2225) (ee488955)
  • radial-bar: 玉珏图支持配置开始角度和结束角度 (#2251) (b18b4d2b)
  • waterfall: 瀑布图回调参数增加分类字段 (#2235) (e81665c5)
Bug Fixes
  • word-cloud: 由于无法判断首次 render 是否 ready,changedata 时,如果有 imageMask,重渲染 (#2252) (b5fe6475)
  • size 判断移入 geometry 里面 (#2237) (a9f37137)
  • 对称条形图 meta 支持 yField 设置别名 (#2240) (903a393d)
  • issue-2216: 饼图默认强制关闭 tooltip shared (#2241) (37cf8a70)
  • #2236: liquid distance calculate error (#2238) (319789be)
Refactors
  • bullet: 子弹图升级下 & 修复 axis 配置失效 (#2228) (8ac55498)

2.3.8 (2021-01-13)

Documentation Changes
  • Plot Guide: 教程页增加以图表类型分类的图表指引 ✨ (#2194) (d97f6910)
  • column: 柱状图的图表指引增加一些特性介绍 (#2201) (60c72b3b)
  • 添加钉钉联系方式 (#2213) (8473559e)
  • 优化图表示例 api 文档样式 (#2209) (a842cf6c)
New Features
  • columnBackground, barBackground: 柱、条形图,玉珏图等支持配置图形背景 ✨ (#2190) (cbd087ae)
  • column: 柱状图支持圆角 & 添加图表指引 ✨ (#2215) (1e186819)
  • word-cloud: 词云图支持展示 legend (#2208) (f539977d)
  • word-cloud: 词云图重写 changeData 方法 && 添加单测 (#2214) (f3d6d7e7)
  • waterfall: 重写瀑布图 changeData 方法 && 添加单测 (#2212) (547d7dd7)
  • radial-bar: 玉珏图重写 changeData 方法 && 添加单测 (#2206) (71868f22)
  • radar: 雷达图重写 changeData 方法 && 添加单测 (#2205) (144cf23b)
  • rose: 玫瑰图修改 changeData && 添加单测 (#2200) (eb44c0fd)
  • progress: 进度条和环形进度条支持 changeData (#2197) (0788dbff)
  • tiny-plot: 迷你折线图和迷你柱形图重写 changeData && 添加单测 (#2177) (921deb67)
  • stock: stock 股票图重写 changeData 方法 (#2170) (ed081070)
  • histogram: 直方图支持动态 changedata (#2199) (a817274d)
  • liquid: 水波图支持动态 changedata (#2198) (d1610f29)
  • tiny-plot: 迷你图默认开启动画效果(#2196) (8dd8064e)
  • treemap: label.formatter 传参和 label.field 相对应,方便用户使用自定义数据设置 label ,tooltip 同 (#2188) (159f80c1)
  • sankey: add default label layout (#2186) (470577ac)
Bug Fixes
  • 对称条形图: 数据顺序问题, 修复设置 title 时左侧的 title 是反转的 (#2204) (08ba3b9b)
  • 环形图及迷你进度条: crash when percent = NaN (#2211) (b8de33ac)
  • radial-bar: 修复 type=line 的玉珏图,设置colorpoint 不生效 (#2185) (c47329f4)
  • demo: demo 实例容器自适应,不需要加宽高 否则影响动画效果 (#2193) (cf8b4c14)

2.3.7 (2021-01-07)

Documentation Changes
  • plugin-plot: 收录 g2plot-lollipop 自定义图表 (#2181) (383d8f71)
  • 增加 meta options 的配置说明文档 & radar demo 移除数据处理逻辑 (#2182) (d7c09ca1)
  • 迁移和弦图文档地址 & 文档样式优化 & 修复 绘图属性文档链接 404 (#2172) (79dc60ba)
  • 修复教程页的 404 链接 & 优化 api 文档的字体间距等样式 (#2167) (2f401dc6)
New Features
  • sankey: remove the circle data in sankey (#2178) (e248c8e3)
  • 迷你折线图和迷你柱形图重写 changeData && 添加单测 (#2177) (921deb67)
  • 饼图支持配置坐标系 startAngle 和 endAngle (#2164) (24681490)
  • open-ability: 开放通用的 adaptors 给自定义扩展图表使用 (#2166) (223473de)
Bug Fixes
  • dual-axes: 双轴图的 y 字段相同的时候,导致 yaxis 配置被覆盖 (#2176) (b46e6b37)
  • stock 股票图重写 changeData 方法 (#2170) (ed081070)
  • issue-2161: 修复数据项存在非法 undefined 时,获取数据 max 为 NaN,导致玉珏图渲染页面崩溃 (#2168) (536adf90)

2.3.6 (2020-12-30)

Documentation Changes
  • 增加动态交互图表 & 文档 typo 修整 (#2154) (72bbfa4b)
New Features
Bug Fixes

2.3.5 (2020-12-28)

Bug Fixes

2.3.4 (2020-12-24)

Documentation Changes
New Features
Bug Fixes

2.3.3 (2020-12-18)

Documentation Changes
New Features
Bug Fixes
Refactors

2.3.2 (2020-12-11)

Chores
New Features
Bug Fixes
  • pie-statistic: 修复环图中心文本从 false 更新为 null,读取空对象属性出错 (#2092) (cf14b369)
  • pie-statistic-action: 修复 changeSize 时,环图中心文本偶发报错 (#2093) (d3a0ece9)
  • 修改官网样式覆盖问题 (#2090) (5a2ce6de)
  • only enable tooltip for prmary geometry for line/area/radar (#2087) (c006f467)
  • fix duplicated label renderde for line/area/radar plot (#2071) (66a1088b)
  • fix early create canvas context cause build error in server side (#2066) (5cdbda35)
  • gauge: 仪表盘的 ticks 默认不均匀,且自定义 scale 无效 (#2085) (089b123f)
  • sankey: close sankey node tooltip (#2072) (4be91f92)
  • issue-2078: 修复 waterfall 无法关闭 tooltip (#2079) (b2716608)

2.3.1 (2020-12-02)

Documentation Changes
New Features
Bug Fixes
  • bar: adjust default legend and tooltip order (#2049) (d2925451)
  • word-cloud: 修复当宽高为 0 时浏览器卡死 (#2055) (2fb711c2)

2.2.13 (2020-11-29)

New Features
  • auto set limitInPlot in dual-axes and bidirectional-bar (#2020) (0882ca3)
Bug Fixes

2.2.12 (2020-11-25)

New Features
Bug Fixes
  • y-scale: update y scale min, max (#2013) (125c4b74)
  • auto adjust scale min to zero for column/bar (#2012) (c5ff5fde)
  • 只允许在基础柱形图和条形图上开启转化率组件 (#1994) (257151c8)
  • line: do not set default range as [0, 1] (#2007) (ef87448e)

2.2.11 (2020-11-21)

Chores
Documentation Changes
Bug Fixes

Tests

2.0.10 (2020-11-19)

Chores
Documentation Changes
New Features
Bug Fixes
Reverts
Tests

2.0.9 (2020-11-10)

Reverts
New Features
  • add syncViewPadding function supported.

2.0.8 (2020-11-10)

Documentation Changes
Bug Fixes
Tests

2.0.7 (2020-11-04)

New Features
Bug Fixes
Tests

2.0.6 (2020-11-02)

Documentation Changes
New Features
Bug Fixes
Refactors
Tests

2.0.5 (2020-10-25)

Chores
Documentation Changes
New Features
Bug Fixes

2.0.4 (2020-10-18)

Chores
Documentation Changes
New Features
Bug Fixes
Refactors

2.0.3 (2020-10-14)

Build System / Dependencies
Documentation Changes
New Features
Bug Fixes
Other Changes

2.0.2 (2020-10-09)

Chores
Documentation Changes
New Features
Bug Fixes

2.0.1 (2020-09-28)

Documentation Changes
New Features
Bug Fixes
  • 修复 column/bar 图例设置 & demo 更新 (#1636) (b2dfd35f)
  • website: 直接显示 1.x 给人感觉是当前是 1.x 版本 (#1656) (79337091)

2.0.0 (2020-09-28)

Documentation Changes
New Features
Bug Fixes
  • 修复 column/bar 图例设置 & demo 更新 (#1636) (b2dfd35f)
  • website: 直接显示 1.x 给人感觉是当前是 1.x 版本 (#1656) (79337091)

2.0.0-beta.6 (2020-09-25)

Chores
Documentation Changes
New Features
Bug Fixes
Performance Improvements
  • 新增 animation 并更正其它图表 getDefaultOptions (#1507) (3d45caf9)
Refactors
Tests

2.0.0-beta.4 (2020-09-18)

Chores
Documentation Changes
New Features
Bug Fixes
Performance Improvements
  • 新增 animation 并更正其它图表 getDefaultOptions (#1507) (3d45caf9)
Refactors
Tests

2.0.0-beta.2 (2020-08-24)

Documentation Changes
New Features
  • slider: add slider common adaptor, apply to line,area,column (#1480) (b1dc58a7)
  • lint-md: add markdown lint & fix markdown error (#1466) (61b8c30b)
  • state: 添加 setState 方法,通过条件设置三种状态的激活与否 (#1460) (5ba9e0a5)
  • theme: 增加主题 examples & 调整 options 定义 & 补全 theme 通道 (#1457) (32ab2840)
  • 导出 G2 和 Tooltip 类型定义 (#1446) (076c7583)
Bug Fixes
Tests

2.0.0-beta.1 (2020-08-14)

Chores
Documentation Changes
New Features
Bug Fixes
Refactors
  • common-helper: 将 common helper 移动到 utils 目录中 (#1430) (dd8facc5)
  • common/adaptor 改为 adaptor/common (#1373) (5daa997c)