#### 3.5.16 (2020-05-12) ##### Chores * **deps:** 升级 G 版本至 ~3.4.9 ([c1559f74](https://github.com/antvis/g2/commit/c1559f74605fc89dfe32bef81175d2ac11e42b35)) #### 3.5.15 (2020-04-08) ##### Bug Fixes * fix scatter crosshairs style ([1bf479fe](https://github.com/antvis/g2/commit/1bf479fe3b3f90376549a2cefb0800c3331d16a3)) #### 3.5.11 (2019-11-20) ##### Chores * update .npmignore ([eeb99dac](https://github.com/antvis/g2/commit/eeb99dacbfcd2669de64491eaac46d202114302c)) #### 3.5.10 (2019-11-19) ##### Chores * **site:** * new site, from now on, all documents and examples will be maintained in the same repository as the code. ##### Bug Fixes * use Util.extend to replace extends when extends G.Group. Related to [#1339](https://github.com/antvis/g2/pull/1339) ([f2214906](https://github.com/antvis/g2/commit/f2214906d596c3b95cb8b7c8f605c6d23377d3d1)) * brush startPonit; forcefie 新选区; 鼠标移出再回来; ([070f44e4](https://github.com/antvis/g2/commit/070f44e4b600f8351089a84aefedab4e71de5794)) * `registerTheme` 及 `setTheme` ts 声明 ([ba56bc15](https://github.com/antvis/g2/commit/ba56bc15ca0d5ca8580dc5cdddad640760b29bdd)) * 多 y 轴无法隐藏指定 legend ([a552c9b9](https://github.com/antvis/g2/commit/a552c9b9426077c012edbdd982914ec90037cddf)) #### 3.5.0 (2019-03-21) ##### New Features - feat(venn): venn geom label supports position adjusting - feat(types): improve TooltipConfig type definition - feat(types): add full LegendConfig.position enums ##### Bug Fixes - fix: label should keep default textStyle when textStyle is a function and returns null. Closes #1231 - fix: 兼容,legend实例attr中存在x与y而canvas形式中是通过group获取的兼容. Closes #997 - fix(scale): Scale config should be effective when data is null or data length is 0, close #1208 - fix(legend): fix the scale alias for mixed legend does not work. Closed #1209 - fix(tooltip): Added line to TooltipConfig crosshairs type - fix(Scale): 线性缩放时,需要深拷贝scale配置. Closes #1178 - fix: auto padding blocks axis title, Closes #1188 - fix(schema): use cfg.color for lineAttrs.stroke if available. - fix(HtmlTooltip): 在特定场景下HtmlTooltip.hide()时大概率获取不到container - fix(label): show label for heatmap, Closes #1184 - fix: Use cfg.color for lineAttrs.stroke if available. - fix: issue-1167 还原格式化. Closes #1167 - fix: when guide.html() is defined, legends is not in view. Closes #1149 - fix: bug in guide. Closes #1149 - fix: *.d.ts: Shape.registerShape and BashView.coord declare #### 3.4.9 (2019-01-04) ##### New Features - chore(test): removing describe.only statement ##### Bug Fixes - fix(chart): auto padding with more accurate backPlot range, Closes #1079 - fix: applyMatrix when calculating bbox of axis title - fix(chart): auto padding with more accurate backPlot range, Closes #1079 - clearInteraction不能清除scrollBar的bug - fix pie-label adjustItems offset err #### 3.4.8 (2018-12-26) - G2.track = () => { console.warn('G2 tracks nothing ;-)'); }; #### 3.4.7 (2018-12-26) **All tracking code is removed, no more unexpected remote request will be sent** ##### Bug Fixes - fix(interval): error bar filling issue. Closes #1123 #### 3.4.6 (2018-12-21) ##### New Features - chore(test): removing .only() statement - feat(legend): enable default legend-item handler ##### Bug Fixes - fix #1051 - fix(legend): issue on filtering https://github.com/antvis/g2/issues/1119 - fix(scale & filter): remove min max limit if field filtered - fix(schema): error bar can't show - fix(shape): liquid fill shapes should use hollow shape styles by default, Closes #1081 - fix(tooltip): 多 view 下 interval 的 tooltip 辅助线不显示 - fix(tooltip): 正确清除 markers #### 3.4.5 (2018-11-27) ##### New Features ##### Bug Fixes - fix(tooltip): crosshair style #### 3.4.3 (2018-11-27) ##### New Features ##### Bug Fixes - fix(shape): add fillOpacity correctly, Closes #1065 - fix(tooltip): crosshair theme & tooltip dark theme #### 3.4.2 (2018-11-22) ##### New Features ##### Bug Fixes - chore(demo): cfg.color should have a higher piority, Closes #1060 - fix(legend): shape mapping should not generate legend, Closes #1057 #### 3.4.1 (2018-11-21) ##### New Features ##### Bug Fixes - fix(geom): applying shape style correctly #### 3.4.0 (2018-11-20) ##### New Features - Feat interaction - chore(demo): default drag and zoom interaction - chore(dev): add some type def in Global - chore(dev): clear code, Closes #1040 - chore(dev): shapeSelect.js -> shape-select.js - chore(interaction): interaction should be call by chart, for some tricky cases - chore(label): add unit test of label capture - chore(package): update dependency version - chore(package): update dependency version - chore(test): confirming theme settings for geom shapes. Closes #1018 - feat(chart): limitInPlot: add clip to middlePlot - feat(interaction): drag and zoom support category fields - feat(interaction): scroll-bar - feat(interaction): slider as an interaction - feat(legend): add onUnhover event ##### Bug Fixes - Fix interaction and theme - Fix label issues - fix(label): Protect `items`, because `getLabelItems` may get the result of `null`. - fix(label): Protect label of `null` value. - fix issue 1014 - fix reactStyle to rectStyle - fix(geom-labels): if htmlTemplate is set, useHtml is true by default - fix(geom-labels): if htmlTemplate is set, useHtml is true by default - fix(heatmap): paletteCache should not be global. Closes #1009 - fix(interaction): X coord dragging - fix(interaction): brush reset - fix(interaction): bug in shape hitting when clip is defined - fix(interaction): slider - fix(interaction): slider default bgChart color - fix(label): fix callback content - fix(label): fix label cfg piority - fix(label): fix label reference - fix(label): fix label rotate issue - fix(label): fix textStyle callback argument error - fix(label): remove _offset, use start point to decide the start point of labelLine - fix(legend): fix legend height when flip is true - fix(shape): default shape color is incorrect, Closes #1027 - fix(shape): default shape color is incorrect, Closes #1027 - fix(shape): do not set color as stroke when setting fill attrs - fix(theme): area & line theme setting is not working - fix(theme): default size - fix(theme): shape setting in theme is not working - fix(tooltip): failed to trigger tooltip on geom labels, fix #1035 - fix(tooltip): tooltip hides when mouse over geom label. Closes #1031 #### 3.3.4 (2018-11-02) ##### New Features - Feat axis position (percentage, 'middle') - chore(demo): add demo for axis position and stock index chart - feat(axis): support middle and percentage for axis position - feat(label): add unit tests of `offsetX` & `offsetY` - feat(legend): add option `offsetX` & `offsetY` - refactor(label): label no longer supports array-like offset value - refactor(label): modify unit tests related to array-like offset value - refactor(legend): fix default style of thetaLabels ##### Bug Fixes - Fix #1001 - Fix hover legend - Fix label styles - fix(arc): fix demo - fix(demo): fix demo usage - fix(facet): fix facet type - fix(label): add option `autoRotate` & `rotate` in label - fix(legend): container's width & height of html legend should not be assigned - fix(legend): fix demo css - fix(legend): fix misspelling - fix(legend):tail-legend position incorerct when the padding-top property of chart was manully setted #### 3.3.3 (2018-10-24) ##### New Features - feat(axis): customized axis title. Closes #974 - chore(dev): upgrade dependencies - feat(axis): customized axis title. Closes #974 ##### Bug Fixes - fix(polar-labels): fix label position calculation error when r = 0 #### 3.3.2 (2018-10-23) ##### New Features - chore(dev): update screenshots - chore(dev): remove useless files in src/component/legend - chore(package): update package version to 3.3.2 & update dependencies ##### Bug Fixes - fix(tooltip): crosshairs-rect display error in bar chart - fix(style): use mix instead of using theme style directly - fix(legend): fix overlapping problem of html legend and canvas - fix(tooltip): crosshairs-rect display error in bar chart - fix(legend): modify reference entry - fix(legend): add z-index to legend in case it's covered by canvas - fix(legend): 修复多面图时导致的legend显示位置bug - fix(legend): determine container when use html to render a legend & add unit test #### 3.3.1 (2018-10-17) ##### New Features ##### Bug Fixes - fix(dev): typescript defination file - fix(guide): region filter does not work on interval geom, etc. Closes #961, #941 #### 3.3.0 (2018-10-16) ##### New Features - chore(demo): add some guide demos. - chore(dev): @babel/env => @babel/preset-env - chore(dev): add scripts for npm run pixel-test - chore(dev): update issue templates - chore: modify components reference - feat(theme): add chart view theme to tooltip - feat: add default style for guide component. - feat: add label type: interval - feat: component legend - feat: demo for custom html legend. fix: custom html and htmlpage category legend - feat: double direction interaction (from chart to legend) - feat: legend component html scroll - feat: legend demos - feat: legend-component, html controller, offset - feat: mini tooltip - feat: tooltip controller module import - refactor(axis): AxisController - refactor(demo): modify demos' styles - refactor(demo): modify html tooltip styles - refactor(geom-labels): merge master - refactor(legend): update demo html style - refactor(tooltip): modify tooltip marker style - refactor: adapt to new guide components. - refactor: better guide.render(). - refactor: modify some test case with Labels - refactor: tooltip controller - refactor: use @antv/components to render label instead of Labels - refactor: use components to render label instead of `Labels` - refator: modify label callback args to fields - revert: remove polar coordinate support - test(bin): add scripts for npm run pixel-test - test: add Node.js 10 - test: delete some tests; fix: @antv/component/lib - test: legend controller ##### Bug Fixes - fix(area): modify default style of area - fix(area): remove default fillOpacity from area shape - fix(axis): clear axis component correctly in axisController - fix(axis): set default label offset to 8px - fix(dev): require lib version instead of src - fix(geom-labels): add unit test of scaled coord labels - fix(geom-labels): change label dependency to lib - fix(geom-labels): fix callback value type - fix(geom-labels): fix default label textStyle sometimes doesn't work - fix(geom-labels): fix label dependency - fix(geom-labels): fix label offset format to match with component - fix(geom-labels): fix offset exception when coord is scaled - fix(geom-labels): fix polygon label position calculation - fix(geom-labels): fix transposed text align logic - fix(geom-labels): modify label position calculation when geom is polygon - fix(geom-labels): resume drawLines - fix(label): merge labelLine only if a value is assigned to it - fix(legend): fix default style of color-legend demo - fix(legend): fix default style of legend marker of area - fix(legend): fix default style of legend marker of area & demo styles - fix(legend): marker for area should be a closed path - fix(pie-label): fix labelLine end point error - fix(test): auto padding in ci evironment - fix(tooltip): fixed tooltip won't hide when plotleave fired - fix(tooltip): should not merge viewTheme into default tooltip cfg again - fix(tooltip): viewTheme in controller - fix(tooltip):mini-tooltip flash - fix: configuration to control the interaction from chart to legend -- reactive [boolean] - fix: fix polar labels don't work - fix: html legend filter - fix: scales to scale - fix: viewTheme #### 3.2.8 (2018-09-14) ##### New Features * chore(dev): add test case. Closes #878 * chore(dev): coord as an interval dependency * chore(dev): upgrade babel * chore(dev): upgrade dataset, support grouped KED transform * chore(dev): upgrade utils, fix donut arc, etc. Closes #878 * chore(naming): demos/data/Iris-flower.json -> demos/data/iris-flower.json * chore(test): add test cases for violinDodge and violin smooth shapes, etc. * chore(util): values -> @antv/util/lib/array/values-of-key, etc. * feat(geom): support dodge adjust for violin geom * feat(geom): support violin and add demos / test cases, etc. * feat(geom): violin geom supports smooth/smoothHollow shapes * feat(guide): add start,end support * refactor(arc): sort out codes related to Math * refactor(polar): add endAngle until endAngle > startAngle ##### Bug Fixes * fix(Global): G2.Global.animate setting is not working, Closes #856 * fix(arc): fix unable to draw circle * fix(arc): when start and end is equal, it should not be a circle * fix(chart): getSnapRecords for points. Closes #885 * fix(dev): upgrade babel preset env for torchjs * fix(label): modify unit tests of label rotation * fix(label): stop setting rotation in attr(), use shape.transform instead * fix(legend):field option error * fix(liquidfill): clip shape should not be added into group * fix(polar): add endAngle until endAngle > startAngle * fix(polar): avoid possible exception when startAngle > endAngle * fix: add issue test case, Closes #838 * fix: add unit test of Polar coord when startAngle > endAngle * fix: add unit test of drawing arc * fix: modify test case accordingly * fix: resume origin code of direction * fix: 修复shared为false,tooltip不随动的bug * fix: 修复test不通过的问题,应该是改为svg和canvas通用以后的遗留问题 * fix: 修改tooltip方法,旧的存在bug,导致typscript报错,无法使用第一个方法。 #### 3.2.7 (2018-08-17) ##### New Features * chore(dev): remove svg-related building code * chore(dev): update g and interaction * chore(test): fixing test cases for new renderer * chore(tooltip): blockTooltipChange -> stopTooltip * feat(renderer): chart scope renderer switching * feat(tooltip): add blockTooltipChange state * feat(track): add trackingInfo for product analysis * refactor(g): change `__attrs` to `_attrs` in tests ##### Bug Fixes * fix(chart): downlownImage not working in svg context * fix(event): fixed bug of guide-line click * fix(g): avoid initializing matrix again, use reset instead * fix(g): new a rect as clip instead of add the shape into a group * fix(legend): fix continuous error position when useHtml is true * fix(legend): slider mousemove events under the condition that legend container is a seperate canvas * fix(region-filter): 判断layer销毁不执行创建shape的行为 * fix(tooltip): fixed tooltip bug of enterable feature * fix(tooltip, event): fix plotleave and tooltip hide bugs #### 3.2.6 (2018-07-28) ##### New Features * feat(tooltip): support custom format ##### Bug Fixes * fix(legend): constrain size legend scroll bar size * fix(tooltip): tooltip style in firefox, Closes #769 * fix(tooltip): Theme.tooltipMarker invalid. Closes #757 * fix(legend): mouseover on customized legend title does not throw. Closes #775 #### 3.2.5 (2018-07-23) ##### Bug Fixes * fix(dev): require entries from src to lib #### 3.2.4 (2018-07-13) ##### Bug Fixes * fix(coord): should not set coord in theme. Closes #745 * fix(dev): unify module entries to avoid building issues #### 3.2.2 (2018-07-10) ##### Bug Fixes * fix(axis): cat axis support timeCat data type * fix(legend): chart backplot range calculation * fix(legend): issue if legend value contains " * fix(legend): path of legend marker of line chart * fix(theme): Global theme is not working * fix(tooltip): tooltip marker style #### 3.2.0 (2018-07-09) ##### New Features * chore(dev): fix test coverage generator * chore(dev): remove lodash, use `@antv/util` instead * chore(dev): support svg (add entry for svg version) * chore(dev): upgrade `@antv/g` to svg supported version * chore(dev): use `@antv/interaction` instead * chore(dev): use src entries to make bundle thinner * chore(structure): publich module `@antv/scale`, `@antv/adjust` and `@antv/attr`. * chore(test): fix test case description * chore(test): remove useless test cases * chore(util): Added tslint npm command that validates src/index.d.ts file; Added simple rules and fixed several tslint code style issues * feat(component): add new components * feat(interaction): support shape select interaction * feat(legend): multi-geom legend support * feat(renderer): support svg renderer * feat(theme): Global -> viewTheme * feat(theme): view theme support for components * feat(theme): view theme support for geom * refactor: add appendInfo to click event if exists * refactor: change clip method of liquid fill plot * refactor: if tooltip is not shared, use event target instead of picking shape from geom * refactor: replace shape Arc with path * refactor: sort out all the util methods into Util * refractor size legend ##### Bug Fixes * fix(axis): tickLine & label positions * fix(axis):align with label, Closes #718 * fix(color): rgba to hex, Closes #678 * fix(coord.polar): when endAngle = Math.PI * 2, graph not fitting canvas. Closes #689 * fix(demo): fixing pie demo * fix(dev) main field in package + fix typescipt requirement issue * fix(geom): interval and area with negative data, Closes #731 * fix(pathUtil.convertPolarPath): Closes #730 * fix(types): Fixed type definition for Chart: correctly typed the constructor argument and added get method * fix(util): DomUtil compatible with older version * fix: fix api usage error * fix: fix some unit tests * fix: fix the incorrect vector of start point tick * fix: fix width & height value of group when group has no child * fix: pass path array instead of manipulating context when defining Marker * fix: revert liquid wave plot * fix: set symbol of tooltip marker * fix: svg version don't have to getShape, use event target * fix: use show & hide instead of set visible #### 3.1.2 (2018-06-08) ##### New Features * feat(legend): tail-legend * feat(legend): extend legend positions to twelve ##### Bug Fixes * fix(guide): exception when draw with reflected coord * fix(heatmap): keep heatmap image in plot range * fix(dev): sync pkg and global version for g2 #### 3.1.1 (2018-06-02) ##### New Features * feat(axis): linear and category axis style ##### Bug Fixes * fix(tooltip): disable tooltip crosshairs event capturing. Closes #656 #### 3.1.0 (2018-05-25) ##### New Features * chore(dev): update dependencies, etc. * feat(interaction): add basic interaction grammar (beta) * feat(interaction): add brush interaction * feat(interaction): add zoom interaction * feat(interaction): add drag interaction * feat(axis): highlight zero baseline ##### Bug Fixes * fix(tooltip): ignore properties like showMarker of tooltip items #### 3.0.12 (2018-05-18) ##### Bug Fixes * fix(geom): undefined container in changeVisible. Closes #629 * fix(tooltip): bug in removing duplicated items, Closes #637 #### 3.0.11 (2018-05-11) ##### Bug Fixes * fix(tooltip): change tooltip when any of the item properties changed, Closes #616 * fix(tooltip): fix bug in removing duplicated items #### 3.0.10 (2018-05-04) ##### New Features * feat(guide):add regionFilter guide ##### Bug Fixes * fix(chart): fix downloadImage method in chart to fit IE 10+ and Firefox, Close #617 * fix(scale): fixing timeCat scale when data is empty, Closes #615 #### 3.0.9 (2018-04-28) ##### Bug Fixes * fix(heatmap): not drawn properly after resize (caused by ctx cache), Closes #604 * fix(scale): time scale init error (caused by invalid min and max), Closes #607 * fix(polygon): open path is not drawn properly in polar coordinate system #### 3.0.8 (2018-04-22) ##### Bug Fixes * fix(area): urgent fix of basic area plot, Closes #602 #### 3.0.7 (2018-04-20) ##### New Features * feat(geom): support multiple polygon * refactor(dev): require on demand (with bundler app) #579 #364 * chore(dev): reduce module size by removing useless deps of lodash * chore(test): clear up test cases ##### Bug Fixes * fix(geom): fix bug in rendering GeoJSON multi-polygon #551 * fix(area): fix bug of area innerRadius in polar coord #573 * fix(pyramid): fix bug of pyramid when processing data with 0 #569 #### 3.0.6 (2018-04-09) ##### New Features * feat(interval): add top-line shape ##### Bug Fixes * fix(legend): position and offset settings not working #### 3.0.5 (2018-04-04) ##### New Features * chore(demo): map with heatmap * chore(dev): remove console logs * feat(chart): add Venn Geom * feat(chart): liquid-fill plots * feat(chart): liquid-fill shapes (guage and path) * feat(line): make lineDash configurable, Closes #486 ##### Bug Fixes * fix(typescript): Some func signature is wrong and cause typescript to * throw error to block compile * fix(animate): fixed axis animate, Closes #378 * fix(chart): venn label position * fix(dev): resolve potential security vulnerability in * dependencies * fix(event): Closes #439 * fix(event): emit plotleave event properly, Closes #502 * fix(funnel): fixed bug of funnel animation, Closes #213 * fix(geom): add chart.pointStack(), Closes #437 * fix(geom): support connect null values, Closes #415 * fix(heatmap): heatmap cannot be drew when reflecting coord * fix(label): fixed bug of pie label when coord rotate * fix(label): when label is empty, the label line does not show * fix(legend): legend value formatter, #406 * fix(legend): when chart auto padding, legend overlap axis * fix(scale): Closes #520, #528, #408 * fix(scale): when Infinity throw error * fix(selected): Closes #515 * fix(tooltip): Closes #454 * fix(tooltip): change tooltip title in tooltip:change, Closes #280 * fix(typing): add missing implicit type definition * fix(venn): label color when shape is hollow * fix(venn): label textBaseline should be middle by default * fix: Closes #557 * fix: html legend in ie9 #### 3.0.4 (2018-01-26) ##### New Features * chore(dev): keep G2.Global.Version same as pkg.version * chore(dev): provide ES5 version for npm pkg * feat(highlight): active shape support highlight * feat(scale): update cat ticks calculate * feat(shape): add image shape for point * feat(shape): add path shape for point * feat(stack): support stack reverse order * perf(shape): caching path calculating for point path shape ##### Bug Fixes * fix(attr): do not throw when color mapping value is NaN * fix(axis): title config not working * fix(chart): clear timer after chart instance destroyed * fix(chart): download image supports Firefox, etc. * fix(event): event triggering in point geom * fix(event): modifying shapes in events not working * fix(facet): duplicated axes rendering * fix(legend): error when `cat` scale with empty data * fix(legend): event is not triggered due to lacking of viewId * fix(legend): extra legend generated in heatmap rendering * fix(legend): html legend checked status error * fix(legend): title config not working * fix(scale): scale sync not working * fix(select): getSelectedCfg is not a function * fix(shape): fixed register shape error * fix(tooltip): tooltip change event emitted only when content changes #### 3.0.3 (2017-12-25) ##### New Features * chore(dev): remove useless dependency (cheerio) * chore(dev): upgrade torchjs (testing framework) * chore(doc): replacing demos screenshot in README.md * chore(legend): better continous legend's mouse cursor. * feat(chart): support auto padding ##### Bug Fixes * fix(axis): axis'title setting. Close #299 * fix(axis): fill gaps near edges when gridAlign is `center` * fix(axis): left axis grid cover the axis line * fix(chart): Endless loop after chart.forceFit() * fix(chart): crush after resize. Closes: #241 * fix(demos): @lite-js/torch => torchjs * fix(demos): map drilling down problem * fix(scale): throw an error to avoid stack overflow, etc. * fix(theme): allow set partial theme. Closed #205. * fix(theme): set theme for legend.html but not work * fix(tooltip): fixed bug of #318, size(filed) caused error of tooltip #### 3.0.2 (2017-12-14) ##### New Features * chore(dev): add `index.d.ts` * chore(dev): working with Windows * chore(dev): better scripts for dev * chore(demos): better demos solution & add more demos ##### Bug Fixes * fix(tooltip): set title for tooltip, change does not take effect(#280) * fix(shape): fixed bug of #252 * fix(view): fix bug of filter and view event * fix(eslint): close the linebreak-style rule to support windows os * fix(dependencies): be more careful on dependencies management (like uglify-js) * fix(scale): very little number ticks * fix(component): set appropriate value of zIndex * chore(demos): fixing demos style, etc. * chore(demos): remove screenshots #### 3.0.1 (2017-12-01) ##### New Features * add appendInfo to help distinguish shape in graphical element events. ([39934761](https://github.com/antvis/g2/commit/399347616be541ef5f254d3a7f03c16e3c91dbdc)) * support `title: true` to display the axis's title. ([7f4cf307](https://github.com/antvis/g2/commit/7f4cf30788c70d2137c62ca41de569b4c61cc15f)) * add `hideMarkers` for `chart.tooltip()`, to close the display of tooltipmarkers for line, path and area. ([bfe3738f](https://github.com/antvis/g2/commit/bfe3738fc3ce07fbfb60698737c583c0a3483ab6)) ##### Bug Fixes * fix tooltip bug. ([2933b777](https://github.com/antvis/g2/commit/2933b7777c4365c5fd8f52bb37fd4ee35250c627)) * Unified the easing function of all geoms. ([78849666](https://github.com/antvis/g2/commit/78849666be78b0b3754c1ed43bfff05e0fff1361)) #### 3.0.0 (2017-11-22) * A complete upgrade, all the interfaces were sorted and upgraded,[details](http://g2-dev.site.alipay.net/zh-cn/g2/3.x/tutorial/g2-v3-changes.html) --- #### 2.3.13 - fix: 修复分组层叠柱状图图例项重复的问题 - fix: 修复单选模式下未设置 `chart.filter()` 点击失败的问题 #### 2.3.12 - feature: `chart.tooltip()` 方法添加 `inPlot` 属性,用于控制是否在绘图区域内展示,默认为 true - fix: 修复 `chart.getSnapPoints()` 查找不精准的问题 - fix: 修复 tooltip 层级问题 - fix: 修复连续图例无法过滤 [0, 1] 的问题 #### 2.3.10 * fix: 修复 dodge 情况下 filter 掉所有选项的问题 * fix: 修复 interval 和 line 同时存在是 tooltip 的 crosshair 线跟 marker 不对齐的问题 * fix: 修复 在极小的数值下坐标轴上出现长浮点数的问题 #### 2.3.9 * fix: 回滚 off 仅带有 eventType 不带有 callback 清理所有同名事件 * fix: 修复饼图文本在临界值(正下方)offset < 0 时的对齐问题 #### 2.3.8 - fix: 2.3.7 导致 tooltip 默认的 title 不可见 #### 2.3.7 - feat: chart.off 支持仅传入事件名,所有同名的事件都会被清理 - feat: tooltipchange 中更改第一个 items 项的 title,会影响 tooltip 的 title - feat: legend 在 bottom 时增加一个 alignPlot 的选项,使得图例跟绘制区域对齐 - feat: tooltip 增加 background 的配置项 - fix: 多边形在极坐标下 hit 的问题 - fix: 切换皮肤时图例、labels 样式不生效的问题 #### 2.3.6 - fix: 修复混合图例筛选问题 - fix: 修复连续型数据,设置了 min max 导致 size 运算不准确的问题 - feat: `chart.downloadImage(name)` 支持仅返回文件对象不触发浏览器的下载动作 - feat: 分面 Facet 支持 Guide 辅助元素的绘制 #### 2.3.5 - fix: 修复框选部分区域不生效的问题 - fix: 修复 `G2.Stat.summary.percent` 统计函数问题 - feat: area line point schema 四种 geom 支持选中交互 #### 2.3.4 - fix: 修复折线图查找逼近值时又很小一段区域无法找到值的 bug - fix: 层叠区域图处理了 null 的数据,如果数据为空时报错 - fix: 数据为空是,栅格线绘制时出错 - improve: 内置列定义属性允许覆盖 #### 2.3.3 - fix: 修复 legend 激活错误 - fix: 自定义的列定义设置属性值无法覆盖 global 上的定义 - fix: 修复 tooltip 关闭时 chart.showTooltip() 调用报错的问题 - improve: 优化 toFixed 位数小于 20,防止报错 #### 2.3.2 - feat: 自定义 shape 场景下,支持覆写 `getActiveCfg` 方法 - feat: chart 支持设置 pixelRatio 属性 - fix: 修复时间类型(time 或者 timeCat)数据为 0 时被转换成当前时间的问题 - fix: 修复坐标轴第一条网格线未绘制的问题 - fix: 修复全局关闭坐标轴标题的显示(如 `G2.Global.axis.left.title = null`)无法生效的问题 - fix: 修复窗口改变时 chart 报错的问题 - improve: 优化 `Stat.link.sankey` 变换函数,提升桑基图数据处理性能 #### 2.3.1 - feat:坐标轴网格线支持奇偶背景设置,[demo](http://g2.antv.vision/demo/14-radar/radar-line.html) - feat:支持全局字体设置 `G2.Global.fontFamily` - feat: 统一层叠柱状图,层叠区域图的图形、tooltip 以及图例的顺序,[demo](http://g2.antv.vision/demo/03-area/area-percent.html) - fix: 修复饼图文本层叠、文本连接线交叉的问题 - fix: 饼图文本线在动画时不显示,暂时停止动画 - improve: 设置 labels 的属性 custom 为 true 时生成的 html 不再自动换行 - improve: 设置 `G2.Global.showSinglePoint` 控制区域图、折线图仅有一个点时是否显示成点,默认为 false #### 2.3.0 - feat: 添加动画自定义接口,详见 [api](http://g2.antv.vision/api/animate.html) - feat: 支持配置项式声明,详见 [api](http://g2.antv.vision/api/chart-options.html) - improve: 动画效果优化 - improve: 绘图底层性能优化 #### 2.2.7 * fix: 修复饼图标签线(labelLine)有交叉的问题 * fix: 不绘制点图中纵轴的数据值为 null 的点 * fix: 修复层叠柱状图(intervaDodge)分组间距计算错误的问题 * fix: 修复多 view 下同步度量下,当个 view changeData 后同步度量失效的情况 * improve: 当线图(line)、区域图(area)只有一条数据时,以点的形式绘制 * improve: tooltip 的辅助线调整至 tooltipmarker(圆点)后部 #### 2.2.6 * fix: 修复绘制 intervalDodge 时,当 x 轴数据类型为 timeCat 且仅有一个分类时显示不正确的问题 * fix: 修复区间柱状图,相同 x 不同 y 区间下鼠标移动 tooltip 不改变的问题 * fix: 修复 tooltip 中展示 undefined 的问题 #### 2.2.5 * feat:`chart.legend()` 方法为**分类类型图例**新增 `formatter` 回调函数,用于图例文本的格式化,详见 [API](http://g2.antv.vision/api/chart.html#legend),[使用实例](http://g2.antv.vision/demo/05-pie/pie.html) * feat:新增 `chart.cols()` 方法,用于一次性定义多个列定义操作,[API](http://g2.antv.vision/api/chart.html#cols) * improve:优化 interval、schema 两种 geom 生成图形的默认宽度计算策略 * fix:修复地理坐标系 tooltip 报错问题 * fix:修复参与加法运算的数据字段无法通过列定义指定度量类型的问题 * fix:修复数据源只有一条记录时 tooltipmarker 无法展示的问题 #### 2.2.4 * fix: 修复 tooltip 不更新的问题 * fix: 修复线图绘制使用渐变色,当仅有一条数据时报错的问题(`Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.`) * feat: 为视图 view 添加 `id` 属性用于唯一标识视图对象,同时添加 `chart.getView(id)` 方法,用于获取对应 id 的视图对象 #### 2.2.3 * feat:`chart.legend()` 方法添加 `marker` 属性,支持指定 `point` 几何标记支持的所有 shape(除去'rect'),详见 [api](http://g2.antv.vision/api/chart.html#legend),默认值为 `circle` * feat:`chart.guide()` 增加回调函数支持动态更新,[实例](http://g2.antv.vision/demo/18-other/dynamic-guide.html) * improve:完善功能,使绘制的柱状图的 y 轴刻度从 0 开始 * improve:完善 log 度量,使其支持 `min: 0` 的设置 * fix:修复某些场景(如线图、面积图等) `geom.getData()` 返回结果为空的错误 * fix:修复饼图中数值为 0 的类别不能显示文本的问题 #### 2.2.2 * feat: 新增功能:chart 下创建的 view 默认共享[列定义](http://g2.antv.vision/doc/tutorial/start/col-defs.html)、坐标轴 axis 配置、坐标系 coord 配置,即如果 view 不自己定义则默认同 chart 的配置相同;(所以这里对于地理投影坐标来说,直接在 chart 上声明坐标系类型就可以全部统一了),如果 view 自己定义了相应的配置,则以自己的为准,详见 [view](http://g2.antv.vision/api/view.html) * feat: 新增 `syncXYScales` 属性,由用户选择是否需要统一所有视图的度量,使用详见 [chart API](http://g2.antv.vision/api/chart.html#syncxyscales) * improve: 优化坐标轴刻度线个数计算 * fix: 修复 tooltipmarker 覆盖 tooltip 的问题 * fix: 修复线图层叠颜色的问题 * fix: 修复时间格式在 firefox 下的问题 * fix: 修复层叠直方图 active 的问题 #### 2.2.1 * improve: 优化鼠标当前位置所在图形的查找 * improve: 优化几何标记 Geom 选中交互,增加 `animate` 和 `cancelable` 配置项,详见 [api](http://g2.antv.vision/api/geom.html#selected) * improve: 支持图表数据源中字段名包含空格的情况,如 "an apple" * fix: 修复极坐标旋转圆心变化的问题 * fix: 修复开启框选时鼠标点击以及高精屏下框选报错的问题 #### 2.2.0 * feat: 丰富图例交互,详见教程[图例筛选模式设置](http://g2.antv.vision/doc/tutorial/start/legend.html# 图例的选择模式设置): 1. 支持鼠标 hover 高亮相关图形 2. 支持单选多选模式 3. 支持混合图表的图例筛选 4. 支持连续图例的筛选 * feat: 支持鼠标框选交互,详见教程[图表框选交互](http://g2.antv.vision/doc/tutorial/start/action.html# 图表框选交互) * feat: 支持 geom 几何标记的选中交互,详见教程[geom 选择交互](http://g2.antv.vision/doc/tutorial/start/action.html# 几何标记 - geom - 的选中) * feat: 新增关系类图表:[弧长链接图](http://g2.antv.vision/demo/13-link/arcDiagram.html)、[和弦图](http://g2.antv.vision/demo/13-link/chordDiagram.html)、[桑基图](http://g2.antv.vision/demo/13-link/sankey.html) * feat: 新增 `chart.downloadImage()` 方法,提供图表下载功能 * fix: 修复 getPosition 当原始数据 y 为零时失效的问题 * fix: 修复 time 度量设置 min 和 max 不生效的问题 #### 2.1.5 * fix: 修复 2.1.4 版本 **Cannot read property 'maxY' of undefined** 问题 * fix: 修复坐标轴中使用自定义 html 显示 label 无法销毁的问 #### 2.1.4 * feat: 添加打点监控开关 `G2.track(boolean)`,默认打开,用户通过设置 `G2.track(false)` 关闭 * feat: 鼠标移动事件 `plotmove` 返回 `shape` 属性,表示当前鼠标所在的 shape * feat: 列定义中支持分类类型声明 range 属性(数组类型,[min, max],min 和 max 均为 0~1 范围的数据),用于指定图形在坐标轴上收尾位置 * improve: 优化 `chart.source(data, cfgObj, nameArr)` 方法,`nameArr` 参数作为附加字段,而不是全部字段 * improve: 优化生成图例的顺序,与用户声明的图形属性(size、shape、color)顺序相同 * fix: 修复二维情况下点图 dodge 发生 stack 的问题 #### 2.1.3 * improve: 优化 tooltip 查找性能 * fix: 修复 changSize 的时候 guide html 反复绘制的问题 #### 2.1.2 * fix: Aniamte CPU 问题 #### 2.1.1 * fix: Aniamte labelLine id 识别错误 * fix: Animate label 显示错误 * fix: Animate fanIn 入场动画改进 #### 2.1.0 * feat: 新增高交互动画 * feat: 新增连续数据过滤 chart.filter() * fix: 连续图例在 bottom、top 时应交换宽高 #### 2.0.6 * fix: 修复 chart.guide().html() 无法清除的问题 * fix: 修复列定义部分属性无法更改的问题 * fix: 自定义 tooltip 事件问题 * fix: 修复当原始数据不存在某个字段时,仍在 Y 轴刻度 0 处绘制的问题 #### 2.0.5 * feat: 新添加 chart.guide().html() 方法,支持自定义 html,[详见](http://g2.antv.vision/doc/tutorial/start/guide.html# 辅助 html) * feat: 优化右侧边缘 tooltip 显示,当宽大于 plot 宽两倍的时候,顶左边 * feat: tooltip 增加自定义 html 边距自动检测 * fix: 双轴图例显示问题 * fix: 修复连续图例两端文本显示错误问题 * fix: 修复连续类型数据 tooltip 生效问题 * fix: 修复饼图相同占比不同类别 tooltip 显示结果相同的问题 * fix: 修复坐标轴 tickCount 设置为 1 时导致坐标轴文本渲染错误 * fix: 修复图例取消选中项不受 word 参数控制问题 * fix: 修复分类类型数据图表化后顺序错乱问题 #### 2.0.4 * improve: 优化 G2 映射后的数据结构,解决原始数据中属性名同 G2 关键字(x y color size 等)冲突问题 * improve: 优化 Stat.map.center() 方法,空值不执行统计 * fix: 修复区域图首条数据鼠标 hover 时绘图区域蒙白问题 * fix: 修复分面 Facet 度量未统一的问题,各个分面的坐标轴范围如果不统一在可视化上没有意义的 #### 2.0.3 * feat: 新增螺旋坐标系,详见 [api](http://g2.antv.vision/api/chart.html#coord) * feat: 根据边距自动计算自定义 html tooltip 位置 * fix: 修复线图 tooltip 部分不展示的问题 * fix: 修复饼图只有一项数据时 label 不展示的问题 * fix: 修复折线图在极坐标系下转曲绘制错误问题 #### 2.0.2 * feat: 多视图(view)图例支持,[demo](http://g2.antv.vision/demo/01-point/scatter-matrix.html) * feat: 支持数据源中记录包含不同属性值的场景,此时 chart.source() 的时候需要传入 names 数组,例如 chart.source(data,defs,names) * feat: 地理投影坐标系坐标轴平滑处理, [demo](http://g2.antv.vision/demo/10-map/world-albers.html) * feat: 图例取消选择时字体置灰 * optimize: 优化图表动画性能 * fix: 修复图例列定义的别名不生效的问题,详见 [issue](https://github.com/antvis/feedback/issues/80) * fix: 修复数据源为空的报错问题 #### 2.0.1 * fix: 修复分面绘制时包含统计语法未进行度量训练的问题 * fix: 修复分面动画卡顿的问题 #### 2.0.0 - feat: 自定义 shape - feat: 多视图 View 功能,支持图表组合和异构数据的绘制 - feat: 新增 edge 几何标记,用于支持关系图的绘制 **移除的功能** - delete: chart.legendVisible() 废除,不再支持 - delete: chart.legend('left|top|right|bottom') (即原先直接传入位置字符串来设定图例位置) 废除,不再支持 - delete: 移除了部分 G2 默认提供的 shape: 对应的 GEOM | 废弃的 shape --- | --- point | pointerArrow point | pointerLine point | pointerRect interval | stroke polygon | stroke #### 1.2.7 * fix: 修复第一个值为 null 时报错 * fix: 修复极坐标 Dodge * fix: time 类型下,只有一个数据时 min、max 报错 #### 1.2.6 * fix: 修复 tooltip 去重中颜色的判断 #### 1.2.5 * feat: 支持背景区域设置主题背景色 * fix: 调整坐标轴和背景区域的绘制顺序 * fix: 修复多个图例情况下对单独一个图例设置 position 将默认的 position 覆盖的问题 #### 1.2.4 * feat: 支持图表宽度自适应配置属性 forceFit * feat: 支持不同图例单独设置显示位置 * feat: 为 Linear、Time 类型度量添加 tickInterval 属性,用于指定坐标轴各个标度点的间距 * fix: 修复区域图不支持连续的 null 值的问题 * fix: 修复字体大小无法设置 * fix: 修复创建 chart 对象时使用 container 属性导致原容器 DOM id 属性被覆盖的问题 * fix: 修复极坐标下动画的旋转中心 #### 1.2.3 * improve: 图例自动换行 * 废弃 lineHeight 概念,使用 bbox.height 代替。对于大小连续图例,会使其不重叠,同时文本竖直分布不均 * fix: theme 中 spacingX 及 spacingY,概念为每个图例之间的左右间距及上下间距。在默认 theme 中根据视觉进行了优化 * feat: chart.guide() 新添加 min 和 max 关键字,用于快速定位坐标轴起点和终点 * fix: 修复 treemap 部分分层边框无法绘制的问题 * fix: 修复 tooltip 辅助线首次出现的位置问题 * fix: 修复 axis label 旋转 text-anchor 失效问题 #### 1.2.2 * fix: 修复 Safari 浏览器下,时间戳含‘Z’出错问题 * fix: 修复仪表盘白边 * fix: 修复饼图文本重叠的问题 * fix: 饼图选中动画 bug * improve: 优化 tooltip 出现的效果 #### 1.2.1 * improve: guide/Arc 算法优化 * fix: tooltip corsshair 遮盖点的问题 * fix: treemap 字段写死的问题 #### 1.2.0 * improve: 精度性能优化,图表的性能是原来的 4+ 倍 * feat: 支持简单的加法运算符,简化了区间数据图表的绘制 * feat: 增加 map 坐标系,用于地图投影的绘制 * feat: 新增两套主题,并修改默认主题 #### 1.1.5 * fix: 修复全局设置 plotCfg facetCfg 无法生效的问题 * fix: 修复饼图文本重叠的问题,#146 #### 1.1.4 * improve: 优化 polygon 图形的文本颜色,默认使用内部文本的样式 * feat: 新增 chart.getPosition({xDim: value, yDim: value})接口,用于原始数据到对应画布坐标的转换 #### 1.1.3 * fix: 混合图例的 marker 颜色未渲染出来 * fix: intervalDodge 当数组只有一个分组时,绘制有问题 * fix: chart.showTooltip() 调用无效 * fix: 半圆饼图动画问题: g-canvas 升级 1.3.21, g-animate 升级 1.2.3 #### 1.1.2 * fix: 饼图中数据占比很小的时导致文本重叠并且展示不正确 * fix: 当数据中都一个记录值为 undefined 的时候,图例绘制出错 * fix: 热力图中使用 log 度量时,透明度没有参与 log 度量 #### 1.1.1 * 调整多边形 (polygon) 在极坐标下的文本展示 * 支持颜色渐变方式的连续图例 * 一些 BUG 修复: 1. 饼图 label 展示的问题 2. 相同图形同类别的 tooltip 取值问题 3. 饼图选中动画问题 4. treemap 文本问题 #### 1.1.0 * 替换了底层的绘图库,优化渲染性能和 tooltip 性能 * 更改了生成 shape 的机制,简化接口 * 补充单元测试,代码覆盖 98%,分支 90% 以上 * 接口优化 #### 1.0.5 * 修复饼图 bug #### 1.0.4 * 所有图表的文本调整,不在跟随坐标系的旋转而变化 #### 1.0.3 * 如果 tooltip 的 title 指定的文本不是数据的字段,则直接显示 * 初始化代码存在问题 * 调整文本位置和角度 * 坐标系 tranpose 后 label 的 offset 的方向错误 * 等高线 tooltip 报错 #### 1.0.2 * 修复 tooltip 优化带来的部分 bug * 选中饼图时残存白线 * change data 导致 tooltip 不可用 #### 1.0.1 * 优化 tooltip 性能 #### 1.0 * 正式发布 #### 0.9.18 * 多个 y 轴的图表,各自生成对应的图例 * 统计函数在外部执行 * tooltip 的信息获取 * 需要把分类数据从通过度量把索引值改成对应的数据,而不是原始数据 * 时间数据转换成为时间戳 * 数据将分类类型、时间类型转换成数字的时间点需要调整 * changeData 时,分类类别发生改变时,scale 未更新 * scale 的 ticks 覆盖问题 * chart.line().label() 的 label 多个 chart 共享 * 一维的箱型图,tooltip 存在问题 * G2.Global.shape 设置 point 配置不生效 #### 0.9.15 * 代码放到页头 header 内部报错, 原因是计算颜色时,需要添加一个临时元素,未考虑 document.body 为空的情形 * 图例标题和文本太近 * 添加蜡烛图 * 自动计算 time 类型的 scale,而不需要用户指定,仅能计算字符串日期格式,时间戳无法判断 * 时间坐标系,interval 无法计算宽度,均匀的时间类型已经处理,非均匀的暂时不作处理 * 计算值是数组的字段对应的类型 * 如果 x 坐标轴上的文本比较长时,会遮住图例,所以图例的位置需要向上调整 * 图例的一系列问题: * 图例顶部和底部位置的默认位置 * 多个图例时的对齐问题和位置调整 * summary.percent('time*value') 统计函数,仅返回了占比,没有将原始的 value 进行累加 * 自定义 tooltip 移动时的闪烁问题,tooltip 的格式化 * 控制不显示 tooltip * area 图 spline 的支持, 限定范围, 统一 smooth 和 spline ,支持 smooth 形式下的断点 * 添加漏斗图 * point.dodge 点的位置存在问题 * 增加 time category 类型的度量,处理股票图不连续的问题 * 纵向坐标轴 title 不存在的时候,文本不需要自动旋转 * 度量改造,统一数据类型 * 柱状图的 transpose 功能,其他图形的 transpose 功能未实现 * 从左向右的动画错误 * 坐标轴标题不居中 * scale 在处理跟预期数据格式不相符时,translate 和 scale 会发生问题 #### 0.9.14 * 图表颜色渐变 * 多图 tooltip 信息的去重 * 支持多图联动,在一个图表上移动,显示所有的 tooltip * 图表事件支持 + 增加了 plotmove,plotenter,plotleave 的支持 + 增加了 tooltipshow 和 tooltiphide 事件 + 增加了 itemselected,itemunselected,itemselectedchange 事件 * 增加 chart 开放的的接口 + chart.getScale(dim) + chart.getTooltipItems() + chart.getGeoms() + chart.getFacets() * 饼图样式的自定义选项,连接线的 bug 修复 * 将所有 chart 对应的 3 个 canvas 包入指定的容器,并设置 relative #### 0.9.13 * fixed bug of toolitp,隐藏 tooltip 时,tooltip 已经被 destroy * fixed bug of legend, 连续数据的图例,不可勾选 * 等高线 * 支持统计函数的马赛克图 * 连续调用 changeData 时报错(tooltip 引起的 bug) * polygon 支持 desity 、smooth 函数 * 连续数据的图例,过滤数据时错误(连续数据不再支持数据过滤) * 分类 scale 对应的字段是数字时,过滤出现问题(解决) * 统一处理热力图、等高线等多个维度的 tooltip 的统一实现 * region 统计函数 range、sd、se 实现,confidence interval 暂时未实现 * 镜像分面坐标轴文本显示问题 * 当分类类型只有一个时,绘图失败 * 分类 interval 自动计算宽度时错误 #### 0.9.12 * 二维 kernel 密度函数的支持 * 三维 kernel 平滑函数的支持 * 热力图的支持 * mirror 分面的支持 * color 渐变色支持 #### 0.9.11 * 热力图六边形的支持 * 辅助线、辅助图片、辅助框等辅助元素的支持 #### 0.9.10 * 修复没有 gemo,调用 clear 报错的 bug * 一维 kernel 密度函数的支持 * 二维 smooth 的支持 * smooth 在数据不对称、无法会超出最小值、最大值范围 #### 0.9.9 * 添加 filter 功能,图例控制显示隐藏 * 添加 changeData 功能 * 添加 changeSize 功能 * 增加 kernel 统计函数的支持,包括 density 和 smooth 类型的统计函数