3.2.1 (2018-08-24)

New Features
  • support set gradient color in default. Closed #243. (20b18a90)
  • support syncY property to unify multiple Y-axis data ranges. Related to #258. (854685e8)
  • support set default selected shape for pie-select and interval-select interaction. Related to #248. (55364d59)
Bug Fixes
  • when geom clear, the _width should be reset. Closed #273. (a36aa67f)
  • when chart update, tooltip's _lastActive should be reset. Closed #271. (297ae475)
  • define calculateBBox method for smooth area shape for getBBox(). (ebf8539d)
  • Fix sorting problem for categorical data. Closed #257. (3a129289)

3.2.0 (2018-08-16)

New Features
  • add interactions for chart, includes: 'pie-select', 'interval-select', 'pan' and 'pinch'.
  • add chart.guide().regionFilter({}).
  • add chart.guide().point({}).
  • add scrollBar plugin for pan and pinch interaction. (08b18c38)
  • add guide.repaint() method. (e626def6)
  • Guide component add limitInPlot property to limit guide draw in chart plot area. Closed #203 (05bf832c)
  • add show() and hide() methods for Geometry instance. (652ce741)
  • add limitInPlot property for chart, to limit the drawing area of geometrys. (74e53218)
  • the drawing order of geoms can be decided by scale values. (1f2993e6)
Bug Fixes
  • Fix problem with element zIndex in tooltip. Closed #216 (2b83bb83)
  • fix axis label animation. (8b1f7b19)
  • when x scale is category, do not need to sort data. Closed #202. (184f3937)
  • The position of the canvas in the parent container needs to be considered when calculating the Guide.Html position. (512e025d)
  • timeCat type scale setting values caused an error in chart drawing. (d1391bd3)
Chores
Other Changes
  • optimize the process of data. (6f00f7ec)
  • add 16ms delay for canvas draw. (012c9fcc)
Tests
  • add test cases for all of the interactions. (77ffa62c)
  • add test case for scrollBar plugin. (b8ac2974)

3.1.20 (2018-08-13)

Bug Fixes

3.1.19 (2018-08-12)

Bug Fixes
  • fix the problem that tooltipMarker not show. Closed #234. (334eb765)
  • fix smooth area chart's update animation does not work. Closed #235. (53124c33)

3.1.18 (2018-08-09)

Bug Fixes
  • when chart.clear() be called, the padding should be recalculated. Closed #228. (dd1a0137)

    3.1.17 (2018-08-03)

New Features
Bug Fixes
  • fix the error of F2.Global.setTheme(). Closed #224. (15547c1a)
Refactors
  • Optimize automatic position adjustment of Guide Tag. Closed #225. (2c0c18a2)
  • Not support triggerOn callback usage for tooltip and legend any more. (33624cb1)

3.1.16 (2018-07-26)

New Features
  • appendPadding support Array, just like padding. Closed #195。 (606c996c)
Bug Fixes
  • Guarantee the accuracy of the trigger point coordinates. Closed #210 (db3d25c8)
  • when set chart.legend(false), chart.getLegendItems() return empty. Closed #190. (c75fdb82)

3.1.15 (2018-07-12)

Bug Fixes
  • fix the padding value error when chart.changeSize() been called. Closed #186 (9edb3a91)

3.1.14 (2018-07-10)

New Features
  • add alwaysShow(Boolean) for tooltip, to controller the display of tooltip. Closed #177 (4ad4b9fa)
Bug Fixes
  • fix radar chart drawing path error. Closed #180 (257e2030)
  • negative data, drawing graphics(bar chart and area chart) beyond the canvas. Closed #179 (3767e386)

3.1.13 (2018-06-28)

New Features
  • add connectNulls for geometry to connect null points. Closed #171. (8729e8ce)
Bug Fixes
  • filter null values when draw stacked point chart. Closed #173. (662e1632)

3.1.12 (2018-06-20)

New Features
Bug Fixes
  • fix main entry configuration. (352dcefa)

3.1.10 (2018-06-11)

New Features
  • add joinString property for legend. (7bc76763)
  • add unCheckStyle for legend. (bab731bd)
Bug Fixes
  • make sure timeCat scale to sort by default. Closed #151. (a9e7fee6)

3.1.9 (2018-06-08)

Chores
  • update package.json configuration. (6f3ee61f)
Bug Fixes
  • when data changed, the padding should be recalculated. (fe7c2215)
  • fix the error when values are all null in linear scale. (54787f36)
  • fix the interval y scale unable to set min. (9c124f9d)

3.1.8 (2018-05-25)

New Features
  • chart legend support single select mode. (ebf6db35)
Bug Fixes
  • prevent same plugins repeat init. (89874884)

3.1.7 (2018-05-17)

New Features
  • add chart.registerPlugins() method. Closed #116. (e578106e)
Bug Fixes
  • when chart is clear, chart.getSnapRecords() should not be affected. (1dbdd79b)
  • fixed stack point chart draw error. Closed #119 (d3632781)

3.1.6 (2018-05-08)

Bug Fixes
  • auto padding calculate should consider legend's offsetX and offsetY. (93f75681)
  • getSnapRecords() - pick data more accurate in pie chart. (d3d6ddc2)
  • the drawing problem when the data of rounded interval shape is zero. (ee79a36c)

3.1.5 (2018-05-04)

New Features
  • Support for rotation of text shapes. (8d01b4d6)
  • Support polar coordinate grid lines can be drawn as arcs. (e8178a99)
Bug Fixes
  • Optimize shape's unique id generation strategy. (09036bad)
  • add isCategory property for TimeCat scale. (6299df3a)
  • animate: fixed issue where geometry animation could not be closed. (e0c39b2b)
  • theme: adjust axis-line's display position. (423b05cc)

3.1.4 (2018-05-02)

Chores
  • dev: require on demand: bundler app (b6fc228c)
New Features
  • Group support matrix animation (0789075f)
  • add chart.animate() method to support more shapes' animation. (bac28f85)
  • add env detect variables, support node-canvas (fcc792f2)
  • gesture-plugin (4de892c9)
  • animate:
    • support customize animation for each frame. (5685e242)
    • easing support function (8fb20b8c)
Bug Fixes
  • support pixelRatio setting for node-canvas. (85cb71d0)
Other Changes
  • demo: add rotation interactive of pie chart. (cfff6817)

    3.1.3 (2018-04-13)

New Features
Bug Fixes
  • fix delay causes the chart not be completely drawed. (c6023c1e)

3.1.2 (2018-04-08)

Bug Fixes
  • fix bug when get records in polar coordinate. Closed #83. (1813bef9)
  • adjust the zIndex of axis, guide, tooltip container. (b1d4e597)
  • axis label fontFamily (e6620f16)
Performance Improvements
  • stop canvas draw when animation stop. (adc33eb4)

3.1.1 (2018-04-02)

New Features
  • support chart animation. See API
  • add chart.changeSize(width, height) method. (58c605f6)
  • add chart.guide().tag(). (f4c88331)
  • support multiple y axis for guide. Closed #64 (6463787b)
Bug Fixes
  • scale formatter not work in tooltip. (c6aff75b)
  • support area with null data (b555d7c7)
  • set min and max for interval is not work. Closed #57 (1a3dde5a)
  • 修复 linear scale tickCount 为 1 卡死浏览器的问题 (86f16009)
  • hidden point draw error. (78fcd53b)
  • chart.getSnapRecords() uncorrect in pie chart. Closed #67 (53fd40ff)
Tests
  • Add complete test cases.

3.1.0 (2018-02-09)

New Features
  • 添加底层绘图引擎,详见 graphic
  • 新增插件机制,更好支持图表功能扩展,详见 plugin
  • 扩展图表功能组件:TooltipLegend扩展 Guide 功能
  • 更灵活的模块按需引用,详见按需引用
  • 全新的图表样式,详见 demos
  • 支持图表布局 padding 的自动计算,详见 padding
  • 添加 chart.scale() 方法,用于列定义
  • 扩展 adjust() 方法,支持传入对象,dodge 方式支持设置 marginRatio 属性用于调整间距
  • chart.coord('polar') 新增 radius 属性,用于调整半径大小,详见 Coordinate API
不兼容性接口说明
  • chart.guide() 各个方法的参数格式同 G2 统一,详见 Guide API
  • F2.G,原先的绘图接口全部废弃,新的 API 参见:graphic

3.0.3 (2018-01-26)

Chores
  • dev:
    • upgrade vulnerable jquery (d00c2009)
    • always exports the latest version (ac768901)
    • standardize npm pkg, provide ES5 version source (5dc4374e)
New Features
  • support setting axis's position. (2a157f25)

3.0.2 (2018-01-18)

New Features

3.0.1 (2017-12-27)

Chores
New Features
  • guide: support offset setting for Guide.Text. (c0564ae6)
  • support F2.Util. (b83b5e95)
  • support CanvasRenderingContext2D instance. (ff2cd37f)
  • better script (1d1cc799)
Bug Fixes
  • should use canvas dom's width. (ca6c040a)
  • dist/f2.js => dist/f2.min.js (24c5b060)
  • scale: fixed bug of first record with null (f94cf376)
  • chart: fixed bug of #15, getSnapRecords of pie (9b0169b3)

3.0.0

跟 g2-mobile 2.x 相比 F2 3.0 的变化:

  • 命名空间 GM 改成 F2 ==不兼容==

  • animate 接口简化 ==不兼容==

  1. // 2.0
  2. chart.aniamte().wavec({
  3. duration: 2000,
  4. easing: 'elastic',
  5. success: function() {
  6. alert('ok');
  7. }
  8. });
  9. // 3.0
  10. chart.animate({
  11. type: 'wavec',
  12. duration: 2000,
  13. easing: 'elastic',
  14. success: function() {
  15. alert('ok');
  16. }
  17. });
  • new chart() 时的配置项
    • margin 改成 padding 为了升级方面,margin 还保留支持
      1. // 2.0
      2. var chart = new Chart({
      3. margin: 20
      4. });
      5. // 3.0
      6. var chart = new Chart({
      7. padding: 20
      8. });
  • 增加 width, height 属性,可以不在 canvas 上指定宽高
  • 增加 pixelRatio 属性
    • intevalStack,intervalDodge,areaStack 不再在chart 上支持 ==不兼容==

F2 3.0 所有的geomety 都支持数据调整

  1. // 2.0
  2. chart.intervalStack().position('a*b');
  3. // 3.0
  4. chart.interval().position().adjust('stack')
  • 自定义Shape 的接口,更改了函数名称,但是保留原先函数名的支持
    • registShape 改成 registerShape
    • getShapePoints 改成 getPoints
    • drawShape 改成 draw
      ```
      // 2.0
      G2.Shape.registShape('interval', 'custom', {
      getShapePoints(cfg) {},
      drawShape(cfg, canvas) {}
      });

G2.Shape.registerShape('interval', 'custom', {
getPoints(cfg) {},
draw(cfg, canvas) {}
});
```

  • 时间分类(timeCat) 类型数据的 mask 改成标准格式 ==不兼容== 新的 mask 参考fecha

2.2.0

  • 修复数据为空,同时设置列定义里面 min: 0,死循环的问题

2.1.19

  • 修复销毁时动画未完成的 bug

2.1.18

  • 修复 timeCat 类型的 getSnapRecords 方法返回空值的问题

2.1.17

  • 支持外部传入 context 对象

2.1.16

  • 支持传入 canvas 对象
  • 新增半圆处理

2.1.14

  • 新增销毁功能
  • 性能优化

2.1.13

  • 支持缓动函数 easing 自定义
  • 支持传入 canvas 对象

2.1.12

  • 修复平铺动画重复绘制问题
  • 修复 guide 辅助元素模块引入时自动创建dom的问题

2.1.11

  • 动画新增参数配置和回调
  • 修复极坐标下getRecord方法获取数据范围不在0-1内的问题
  • 给 getSnapRecords 方法新增逼近维度配置

2.1.10

  • 绘图库绘制文字的方法添加旋转rotate功能

2.1.9

  • 给 guide 的 rect 方法新增圆角配置
  • 给 geom 中折线图的虚线 dash 添加全局样式配置

2.1.8

  • 给 axis 的 label 配置项添加定义文本内容功能

2.1.7

  • 修复线图和区域图使用时间轴数据超过10条在chrome浏览器排序出错的问题

2.1.6

  • 修复guide的clear方法没有清空html的dom元素问题

2.1.5

  • 添加window变量保护

2.1.4

  • 优化getSnapRecord方法

2.1.3

  • 添加 fillOpacity 和 strokeOpacity 两个图形绘图属性;
  • geom 对象开放 getAllShapeData() 接口,返回 geom 上所有 shape 的绘制数据;
  • 修复参与映射的数据属性的数据值全为 undefined 导致栈溢出的问题;
  • 添加环形平铺动画方法wavec();
  • 修复辅助html文本结构混乱问题.

    2.1.2

  • 在数据结构frame中添加源数据,供用户在扩展接口上使用

2.1.1

  • 优化动画模块
  • 给定默认颜色,将color方法变成可选项
  • 修复area模块的自定义shape接口

2.1.0

  • 新增动画功能,支持水平方向的平铺(waveh)、x轴上的缩放(scalex)、y轴上的缩放(scaley)、x和y轴同时缩放(scalexy)
  • 修复shape接口
  • 给line的shape新增dash方法
  • 将getSnapRecords方法在chart中抛出

2.0.1

  • guide 新增html对齐功能,支持9点对齐方式:tr、tc、tl、br、bc、bl、lc、rc、cc
  • geom 添加getSnapRecords方法,提供根据画布坐标获取数据的功能

2.0.0

  • 集成g2-core,并统一API与G2一致
  • guide 拓展
    • line
    • arc
    • text
    • html

1.0.7

  • 修复了环图在UC上的bug
  • 新增加 timeCat 类型
  • 调整scale tickcount 自动计算向上逼近
  • 修复scale linear 的几个bug

1.0.4

  • scale 增加了offset属性,自动计算时min,max各自浮动 百分比
  • 增加了自动计算精度的功能,用户只需要传入单精度的值
  • 提供了自定义样式功能,拆分坐标轴的全局配置信息
  • 修复点图,边框没有颜色的问题

1.0.0

new It is the first version of g-mobile.

原文: https://antv.alipay.com/zh-cn/f2/3.x/tutorial/history.html