Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mosaice opened this issue Nov 25, 2024 · 0 comments
Open

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

mosaice opened this issue Nov 25, 2024 · 0 comments

Comments

@mosaice
Copy link

mosaice commented Nov 25, 2024

问题描述

官网上的例子中

在一个图例中可以同时画 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant