Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: antvis/G2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.1.11
Choose a base ref
...
head repository: antvis/G2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.1.12
Choose a head ref
  • 10 commits
  • 98 files changed
  • 9 contributors

Commits on Dec 7, 2023

  1. docs: add simple bar demos (#5893)

    pearmini authored Dec 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bda4540 View commit details
  2. docs: fix link to en docs for point scale (#5895)

    Co-authored-by: chenkun <ck01107787@antgroup.com>
    ChenKun1997 and chenkun authored Dec 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4679430 View commit details

Commits on Dec 8, 2023

  1. docs: add examples new images (#5907)

    * docs: add examples new images
    
    * docs: add examples new images
    
    ---------
    
    Co-authored-by: wb-xcf804241 <wb-xcf804241@wb-xcf804241deMacBook-Pro.local>
    ai-qing-hai and wb-xcf804241 authored Dec 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3083c85 View commit details

Commits on Dec 10, 2023

  1. fix: tz in cross-env (#5915)

    ZhoBudweiser authored Dec 10, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8fbfa4e View commit details

Commits on Dec 11, 2023

  1. docs: fix image url (#5916)

    hustcc authored Dec 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    690cf80 View commit details
  2. feat(rangeX and rangeY): add syntactic sugar for data (#5914)

    * feat(rangeX and rangeY): add syntactic sugar for data
    
    * docs(rangeX and rangeY): add syntactic sugar content
    deletenothing authored Dec 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1a28b3d View commit details

Commits on Dec 12, 2023

  1. fix: tooltip enterable (#5626)

    * fix: tooltip enterable
    
    * chore: remove unused pointer event
    
    * chore: fix ci
    
    * chroe: update component version
    
    * fix: code review and renmae pointover to pointmove
    hustcc authored Dec 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    08153e6 View commit details
  2. docs: add brush tooltip show (#5919)

    Co-authored-by: wb-xcf804241 <wb-xcf804241@wb-xcf804241deMacBook-Pro.local>
    ai-qing-hai and wb-xcf804241 authored Dec 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    04e673b View commit details
  3. fix: fix tooltip shown on one element line chart. (#5917)

    * fix: fix the tooltip shown on one element line chart
    
    * fix: change test examples
    Runtus authored Dec 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    52417d3 View commit details
  4. chore: update to 5.1.12 (#5924)

    pearmini authored Dec 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3f4e44f View commit details
Showing with 1,814 additions and 231 deletions.
  1. +16 −0 CHANGELOG.md
  2. +2 −2 __tests__/integration/api-chart-emit-enable-disable-tooltip.spec.ts
  3. +1 −1 __tests__/integration/api-chart-emit-item-tooltip-hide-content.spec.ts
  4. +2 −2 __tests__/integration/api-chart-emit-item-tooltip.spec.ts
  5. +2 −2 __tests__/integration/api-chart-tooltip-multi-chart.spec.ts
  6. +1,041 −0 __tests__/integration/snapshots/static/aaplLineRrangeXY.svg
  7. +46 −0 __tests__/integration/snapshots/tooltip/alphabet-interval-enterable/step0.html
  8. +46 −0 __tests__/integration/snapshots/tooltip/one-element-line/step0.html
  9. +1 −1 __tests__/plots/interaction/stateages-interval-highlight-group-background.ts
  10. +28 −0 __tests__/plots/static/aapl-line-rangeXY.ts
  11. +1 −0 __tests__/plots/static/index.ts
  12. +34 −0 __tests__/plots/tooltip/alphabet-interval-enterable.ts
  13. +2 −2 __tests__/plots/tooltip/alphabet-interval-tooltip-render-update.ts
  14. +1 −1 __tests__/plots/tooltip/flare-treemap-poptip.ts
  15. +2 −0 __tests__/plots/tooltip/index.ts
  16. +28 −0 __tests__/plots/tooltip/one-element-line.ts
  17. +1 −1 __tests__/plots/tooltip/profit-interval-legend-filter-ordinal.ts
  18. +2 −2 __tests__/plots/tooltip/utils.ts
  19. +6 −6 package.json
  20. +1 −1 site/docs/spec/component/title.zh.md
  21. +14 −0 site/docs/spec/mark/rangeX.zh.md
  22. +14 −0 site/docs/spec/mark/rangeY.zh.md
  23. +2 −2 site/docs/spec/scale/point.en.md
  24. +3 −3 site/examples/algorithm/sort/demo/meta.json
  25. +5 −5 site/examples/analysis/bin/demo/meta.json
  26. +2 −2 site/examples/analysis/group/demo/meta.json
  27. +5 −5 site/examples/analysis/regression/demo/meta.json
  28. +6 −6 site/examples/animation/general/demo/meta.json
  29. +4 −4 site/examples/animation/group/demo/meta.json
  30. +2 −2 site/examples/annotation/connector/demo/meta.json
  31. +4 −4 site/examples/annotation/line/demo/meta.json
  32. +2 −2 site/examples/annotation/range/demo/meta.json
  33. +1 −0 site/examples/annotation/shape/demo/interval-point.ts
  34. +3 −3 site/examples/annotation/shape/demo/meta.json
  35. +1 −1 site/examples/component/axis/demo/axis.ts
  36. +4 −4 site/examples/component/axis/demo/meta.json
  37. +4 −4 site/examples/component/label/demo/meta.json
  38. +2 −2 site/examples/component/legend/demo/meta.json
  39. +1 −1 site/examples/component/scrollbar/demo/meta.json
  40. +5 −5 site/examples/component/tooltip/demo/meta.json
  41. +5 −5 site/examples/composition/facet/demo/meta.json
  42. +2 −2 site/examples/composition/repeat/demo/meta.json
  43. +2 −2 site/examples/composition/space/demo/meta.json
  44. +2 −2 site/examples/general/area/demo/area-difference.ts
  45. +14 −14 site/examples/general/area/demo/meta.json
  46. +7 −7 site/examples/general/box/demo/meta.json
  47. +1 −1 site/examples/general/cell/demo/meta.json
  48. +6 −6 site/examples/general/dual/demo/meta.json
  49. +3 −3 site/examples/general/funnel/demo/meta.json
  50. +1 −0 site/examples/general/funnel/demo/pyramid.ts
  51. +1 −1 site/examples/general/gauge/demo/meta.json
  52. +2 −2 site/examples/general/image/demo/meta.json
  53. +36 −0 site/examples/general/interval/demo/bar-basic-grouped.ts
  54. +36 −0 site/examples/general/interval/demo/bar-basic-stacked.ts
  55. +26 −0 site/examples/general/interval/demo/bar-basic-transposed.ts
  56. +21 −0 site/examples/general/interval/demo/bar-basic.ts
  57. +32 −0 site/examples/general/interval/demo/meta.json
  58. +1 −1 site/examples/general/line/demo/line-sample.ts
  59. +1 −2 site/examples/general/line/demo/line-series.ts
  60. +14 −14 site/examples/general/line/demo/meta.json
  61. +1 −0 site/examples/general/link/demo/link-annotation.ts
  62. +2 −2 site/examples/general/link/demo/meta.json
  63. +2 −2 site/examples/general/mini/demo/meta.json
  64. +4 −4 site/examples/general/pie/demo/meta.json
  65. +12 −12 site/examples/general/point/demo/meta.json
  66. +6 −3 site/examples/general/point/demo/point-bubble.ts
  67. +0 −1 site/examples/general/point/demo/point-label.ts
  68. +1 −1 site/examples/general/radar/demo/meta.json
  69. +1 −1 site/examples/general/radial/demo/meta.json
  70. +4 −4 site/examples/general/rose/demo/meta.json
  71. +1 −0 site/examples/general/rose/demo/rose.ts
  72. +1 −1 site/examples/general/sunburst/demo/meta.json
  73. +4 −4 site/examples/general/text/demo/meta.json
  74. +2 −2 site/examples/general/vector/demo/meta.json
  75. +2 −2 site/examples/general/venn/demo/meta.json
  76. +3 −3 site/examples/general/violin/demo/meta.json
  77. +1 −0 site/examples/general/violin/demo/violin-polar.ts
  78. +1 −0 site/examples/general/violin/demo/violin.ts
  79. +1 −1 site/examples/graph/network/demo/meta.json
  80. +2 −2 site/examples/intelligent/auto/demo/meta.json
  81. +72 −2 site/examples/interaction/brush/demo/brush.ts
  82. +2 −2 site/examples/interaction/brush/demo/meta.json
  83. +1 −1 site/examples/interaction/component/demo/meta.json
  84. +1 −1 site/examples/interaction/multi-view/demo/meta.json
  85. +2 −2 site/examples/interaction/other/demo/meta.json
  86. +1 −1 site/examples/interesting/interesting/demo/meta.json
  87. +3 −3 site/examples/renderer/renderer/demo/meta.json
  88. +4 −4 site/examples/storytelling/storytelling/demo/meta.json
  89. +3 −3 site/examples/style/rough/demo/meta.json
  90. +5 −5 site/examples/unit/unit/demo/meta.json
  91. +1 −1 site/package.json
  92. +29 −20 src/interaction/tooltip.ts
  93. +2 −1 src/mark/rangeX.ts
  94. +2 −1 src/mark/rangeY.ts
  95. +1 −1 src/spec/interaction.ts
  96. +2 −0 src/transform/index.ts
  97. +36 −0 src/transform/maybeDefaultX.ts
  98. +36 −0 src/transform/maybeDefaultY.ts
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## [5.1.12](https://github.com/antvis/g2/compare/5.1.11...5.1.12) (2023-12-12)


### Bug Fixes

* fix tooltip shown on one element line chart. ([#5917](https://github.com/antvis/g2/issues/5917)) ([52417d3](https://github.com/antvis/g2/commit/52417d301dc28f37100b2b48dd1b94039f5b29b5))
* tooltip enterable ([#5626](https://github.com/antvis/g2/issues/5626)) ([08153e6](https://github.com/antvis/g2/commit/08153e6a464062ed829617bd83539408582b35d9))
* tz in cross-env ([#5915](https://github.com/antvis/g2/issues/5915)) ([8fbfa4e](https://github.com/antvis/g2/commit/8fbfa4edfe0a9bb403b8ae20af7f4dcccd31d678))


### Features

* **rangeX and rangeY:** add syntactic sugar for data ([#5914](https://github.com/antvis/g2/issues/5914)) ([1a28b3d](https://github.com/antvis/g2/commit/1a28b3d8182b75a25cccf12a6d2a1f9ff8096f6d))



## [5.1.11](https://github.com/antvis/g2/compare/5.1.10...5.1.11) (2023-12-06)


Original file line number Diff line number Diff line change
@@ -57,15 +57,15 @@ describe('chart.emit', () => {
chart.emit('tooltip:disable');
await sleep(20);

dispatchFirstElementEvent(barCanvas, 'pointerover');
dispatchFirstElementEvent(barCanvas, 'pointermove');
await expect(barCanvas).toMatchDOMSnapshot(dir, 'step0', {
fileFormat: 'html',
selector: '.g2-tooltip',
});

chart.emit('tooltip:enable');

dispatchFirstElementEvent(barCanvas, 'pointerover');
dispatchFirstElementEvent(barCanvas, 'pointermove');
await expect(barCanvas).toMatchDOMSnapshot(dir, 'step1', {
fileFormat: 'html',
selector: '.g2-tooltip',
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ describe('chart.emit', () => {
// chart.on("tooltip:hide") should be called when hiding tooltip.
const [tooltipHided, resolveHide] = createPromise();
chart.on('tooltip:hide', receiveExpectData(resolveHide, null));
dispatchFirstElementEvent(canvas, 'pointerout');
dispatchFirstElementEvent(canvas, 'pointerleave');
await tooltipHided;
});

4 changes: 2 additions & 2 deletions __tests__/integration/api-chart-emit-item-tooltip.spec.ts
Original file line number Diff line number Diff line change
@@ -37,13 +37,13 @@ describe('chart.emit', () => {
// chart.on("tooltip:show", callback) should revive selected data.
const [tooltipShowed, resolveShow] = createPromise();
chart.on('tooltip:show', receiveExpectData(resolveShow));
dispatchFirstElementEvent(canvas, 'pointerover');
dispatchFirstElementEvent(canvas, 'pointermove');
await tooltipShowed;

// chart.on("tooltip:hide") should be called when hiding tooltip.
const [tooltipHided, resolveHide] = createPromise();
chart.on('tooltip:hide', receiveExpectData(resolveHide, null));
dispatchFirstElementEvent(canvas, 'pointerout');
dispatchFirstElementEvent(canvas, 'pointerleave');
await tooltipHided;
});

4 changes: 2 additions & 2 deletions __tests__/integration/api-chart-tooltip-multi-chart.spec.ts
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@ describe('chart.interaction.tooltip', () => {
});
await Promise.all([finished0, finished1]);

dispatchFirstElementEvent(canvas1, 'pointerover');
dispatchFirstElementEvent(canvas2, 'pointerover');
dispatchFirstElementEvent(canvas1, 'pointermove');
dispatchFirstElementEvent(canvas2, 'pointermove');
expect(
Array.from(document.body.getElementsByClassName('g2-tooltip')).length,
).toBe(2);
Loading