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

Chart update with the option enableMouseTracking doesn't work as intended when passing state true to false #12258

Closed
ArnaudGeorges opened this issue Oct 22, 2019 · 3 comments
Labels
Status: Has workaround Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Bug

Comments

@ArnaudGeorges
Copy link

Hi,
Small example here, a chart with a single serie with enableMouseTracking set to false and two buttons, one to activate the enableMouseTracking and the other to desactivate it with the method Chart.update().
You can see it at : https://jsfiddle.net/6zwdeguo/5/
The activation (false to true) is working perfectly but when you try to desactivate (true to false), the chart is still reacting to the user's mouse.
Am i missing something here or is it a bug ?

Best regards,
Arnaud

@sebastianbochan
Copy link
Contributor

Hi @ArnaudGeorges,
Thank you for reporting about the problem.

Simplified demo:

Workaround
Remove listeners on each point of series.

Demo:

@ArnaudGeorges
Copy link
Author

Thank you for your solution, it fits my needs for the moment.
Best regards,
Arnaud

@stale
Copy link

stale bot commented Jun 3, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Jun 3, 2021
@stale stale bot closed this as completed Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Has workaround Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants