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

Hover and tooltip ordering on combined chart #1955

Closed
Roarster opened this issue Feb 1, 2016 · 1 comment
Closed

Hover and tooltip ordering on combined chart #1955

Roarster opened this issue Feb 1, 2016 · 1 comment
Milestone

Comments

@Roarster
Copy link

Roarster commented Feb 1, 2016

When using a combined chart in v2.0 the tooltip and hover that is shown in single mode is always the first element found in a dataset that matches the mouse position. This means that if you have a bar and line chart with the bar as the first dataset then the tooltips for the line chart will never appear if they are on top of the bars. This fiddle has an example:

https://jsfiddle.net/qyfLs1w7/1/

In this example it can be fixed by swapping the ordering of the datasets so that the line comes first but I'm not sure this is the best fix. Perhaps the tooltip could be adjusted to show the details of the latest point to be hovered (by time), I think this would ensure that a point contained within another element would be seen as the active when it was hovered with it reverting to the container once the inner point is no longer hovered.

@etimberg
Copy link
Member

etimberg commented Oct 9, 2016

This was fixed in #3400

Using the new nearest mode

@etimberg etimberg closed this as completed Oct 9, 2016
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