antvis/G2

Do you want to work on this issue?

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

Rangex 的 Legend 点击交互会导致原本其他内容不渲染 #6528

mosaice posted onGitHub

问题描述

官网上的例子中

在一个图例中可以同时画 line 和 rangex ,需要用同一个维护的 X通道数据来关联起两个图形,但是在 rangex 的legend 交互时会直接将 Line 的X通道数据也过滤掉,导致原本的图形渲染异常,正常交互应该是点击 range 的legend 只对自己部分有影响 。并且如果对同一个legend点击两次使其回归选中状态,图形依旧无法回到最初渲染的样子

重现链接

https://g2.antv.antgroup.com/manual/core/data#%E6%A0%87%E8%AE%B0%E7%9A%84%E6%95%B0%E6%8D%AE

重现步骤

  1. 进入页面
  2. 点击 rangex 的 legend
  3. 重复点击进行切换

预期行为

期望:rangex 的交互 不影响line 渲染,正常点击 rangex legend 只会显示/隐藏自己 实际:line 数据遭到影响

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

image

image

image

补充说明(可选)

No response


和这个可能是相同的问题:https://github.com/antvis/G2/issues/6701

posted by hustcc about 1 month ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests