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

[BUG] Tooltip labels for equal data not combining using mode: nearest #5371

Closed
koltclassic opened this issue Mar 27, 2018 · 1 comment
Closed
Milestone

Comments

@koltclassic
Copy link

Expected Behavior

When hovering over two lines with equivalent data points, I would expect to see a tooltip with labels for both data points.

Current Behavior

When hovering over two lines with equivalent data points, the tooltip data does not combine. Rather, each individual tooltip "flashes" repeatedly one after the other.

Possible Solution

I would assume this would be an issue with the nearest method under Chart.Tooltip.positioners ?
Though there is also a getNearestItems function in core.interaction.js that might be worth checking out as well (side note: there is a typo in the getNearestItems comment, "teh" -> "the" 😄 )

Steps to Reproduce (for bugs)

From: http://www.chartjs.org/samples/latest/tooltips/interactions.html
chartjstooltipbug

Context

This doesn't impact me directly, but I could see it being an issue.

Environment

  • Chart.js version: Latest (2.7.2)
  • Browser name and version: Latest Chrome (65), Latest Firefox (59), Latest Safari (11)
@etimberg
Copy link
Member

etimberg commented Jun 7, 2018

@simonbrunel how do you feel about this?

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