antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

g2 4.xx 如何实现g2 5.xxbeta 的rangeX功能 #4651

tiehongji posted onGitHub

<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • npm test passes
  • benchmarks are included
  • commit message follows commit guidelines
  • documents are updated
Description of change

<!-- Provide a description of the change below this comment. -->


5.0下图例点击无效果且rangeX下使用tooltip异常

posted by tiehongji about 2 years ago

@tiehongji G2 4.x 中没有 rangeX 的能力,只有 y 通道能够指定数组,相当于 rangeY。

5.0下图例点击无效果且rangeX下使用tooltip异常

针对 5.0 的 问题,@pearmini 跟进一下看看。

posted by hustcc about 2 years ago

5.0下图例点击无效果且rangeX下使用tooltip异常

图例点击无效,是因为目前需要显式设置图例相关的交互。

chart.interaction({ type: 'legendFilter' });

rangeX tooltip 的异常具体是指?

posted by pearmini about 2 years ago

@pearmini tooltip显示空白,且鼠标跟随位置也有一定问题,item获取不到数据而去5.xx文档中item链接位http://localhost:8000/examples/interaction/interaction/#tooltip-custom

posted by tiehongji about 2 years ago

@tiehongji

chart.rangeX().encode('tooltip', fieldA).encode('tooltip', fieldB);
posted by pearmini about 2 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests