antvis/G2








The issue has been closed
[Bug]: 词云图隐藏某个词的时候,点击词云图上的词,实际打印出来的是另一个词 #6747
linjc posted onGitHub
Describe the bug / 问题描述
给词云图绑定元素点击事件
chart.on('element:click', (e) => {
console.log(e.data.data, 1111111)
})
<img width="1524" alt="Image" src="https://github.com/user-attachments/assets/2d03fc43-415f-4e6b-8701-b45cea8c2b3c" />
上图点击隐藏"better coating durability"这个词,然后点击图上任意一个数量小于隐藏词的词,打印出来的实际是另一个词
<img width="944" alt="Image" src="https://github.com/user-attachments/assets/d0bafb50-2c21-440b-9bd8-af0beadf9d94" />
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
Version / 版本
Please select / 请选择
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他