AntV·G2Plot v2.3.2 版本发布

New Features

  • 散点图一个数据点时自动调整 min max (#2075) (290fb5a0)

解读:当只有一条数据的时候,数据点居中是最佳实践。

Bug Fixes

  • pie-statistic:  修复环图中心文本从 false 更新为 null,读取空对象属性出错 (#2092) (cf14b369)
  • pie-statistic-action:  修复 changeSize 时,环图中心文本偶发报错 (#2093) (d3a0ece9)
  • 修改官网样式覆盖问题 (#2090) (5a2ce6de)
  • 修复 line/area/radar 等 tooltip 重复渲染:only enable tooltip for primary geometry for line/area/radar (#2087) (c006f467)

解读:line plot 上的 point 作为辅助几何标记,其 tooltip 信息和折线重复,需要进行关闭,同理area plot & radar plot折线图、面积图和雷达图上 tooltip 有时会出现重复的 tooltip items,原因为多个 geometry 的 tooltip 同时显示出来了)

  • 修复 line/area/radar 等 label 重复渲染:fix duplicated label render 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)

自定义

解读:除了让仪表盘 ticks 默认优雅之外,还提供了自定义 scale 的方式来定制自己的仪表盘

  • sankey:  修复 sankey node 无法关闭 tooltip (#2072) (4be91f92)
  • 瀑布图:修复 waterfall 无法关闭 tooltip (#2079) (b2716608)
  • axis:调整坐标轴标签默认的 autoHide 配置,默认开启 autoHide,并设置最小间距 6px (#3104)

解读:axis 不会排布的非常紧密和丑陋。

  • legend:调整图例的默认 padding,使得图例和图形对齐 (#3104)

解读:图例之前左侧没有对齐,有 8px 的偏移。

发布说明:https://www.yuque.com/antv/g2plot/pmp0qg

猜你喜欢

转载自www.oschina.net/news/123373/antv-g2plot-2-3-2-released