We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
无 label 设定效果
有 label 设定,tooltip 无法触发
从体验上讲 label 应该不影响 tooltip 触发。 官方的数据点比较多,可能比较明显,真实情况可能没这么多点,但点与点距离是数据决定的。label 就算有偏移,长度也是不可控的,大概率也会有遮挡情况。
官方代码修改
import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', theme: 'classic', autoFit: true, }); chart .point() .data({ type: 'fetch', value: 'https://gw.alipayobjects.com/os/basement_prod/6b4aa721-b039-49b9-99d8-540b3f87d339.json', }) .encode('x', 'height') .encode('y', 'weight') .encode('color', 'gender') .label({ text: 'weight' }); chart.render();
The text was updated successfully, but these errors were encountered:
label.style.pointerEvents = 'none'
Sorry, something went wrong.
No branches or pull requests
问题描述
无 label 设定效果
有 label 设定,tooltip 无法触发
期望结果
从体验上讲 label 应该不影响 tooltip 触发。
官方的数据点比较多,可能比较明显,真实情况可能没这么多点,但点与点距离是数据决定的。label 就算有偏移,长度也是不可控的,大概率也会有遮挡情况。
如何重现
官方代码修改
额外信息
The text was updated successfully, but these errors were encountered: