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

Jumpy mouse tracking behaviour with multiple arearange & line series #5315

Closed
olivergrimes opened this issue May 13, 2016 · 3 comments
Closed

Comments

@olivergrimes
Copy link

Expected behaviour

Mousetracking/hover events to fire only when directly over a series using the appropriate plotOptions.series.stickyTracking: false and tooltip.shared: false options.

Actual behaviour

Tooltip & events firing for other series when not directly hovered over them.

Live demo of the issue

JSFiddle
StackOverflow question

Steps to reproduce the behaviour

See JSFiddle

Affected browser(s)

Only tested in Chrome

@TorsteinHonsi
Copy link
Collaborator

It happens because in line and arearange series, the tooltip finds the closest point and fires the tooltip over that. That's why hovering the gray area may actually trigger a tooltip on another series. Since the area ranges only have control points in the ends, they are not the closest points to the mouse when you hover in the middle. A workaround may be to add more points in between.

@olivergrimes
Copy link
Author

olivergrimes commented May 18, 2016

@TorsteinHonsi Thanks for the response, I've taken your suggestion and created a function to interpolate arearange series. Working example for reference: https://jsfiddle.net/7czk7nvu/6/

@pawelfus
Copy link
Contributor

It's fixed in 4.2.7/5.0.0 versions: https://jsfiddle.net/sfgtju1u/

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

No branches or pull requests

3 participants