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

折线图中shape为smooth时,事件line:click监听无效 #3329

Closed
1 task
no-simple opened this issue Mar 17, 2021 · 1 comment
Closed
1 task

折线图中shape为smooth时,事件line:click监听无效 #3329

no-simple opened this issue Mar 17, 2021 · 1 comment

Comments

@no-simple
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://6ipi1.csb.app/

Steps to reproduce

chart.line().position('date*nlp').color('#2fc25b').shape('smooth');
chart.on('line:click', () => {
  console.log(999)
})
Environment Info
g2 4.1.12
System -
Browser -
@hustcc
Copy link
Member

hustcc commented Mar 17, 2021

@no-simple 确实存在这个问题。原因是 smooth 的拾取性能很差,500 点的折线图都会导致 tooltip 卡死,所以暂时关闭这个的事件。

建议:使用 line shape 而不是 smooth。

@hustcc hustcc closed this as completed Mar 25, 2021
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

2 participants