question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line chart - hovering not triggering tooltip at the proper point

See original GitHub issue

In this fiddle when I hover over Dec. 22 the appropriate tooltip gets displayed. However, as I scroll my mouse right to Dec. 23, the tooltip does not change until I actually pass to the right of the Dec. 23 line. This means that when I’m hovering directly over Dec. 23 it still shows the Dec. 22 tooltip.

It ends up feeling like the tooltips aren’t aligning with my mouse properly as you try to focus on one or another point on the graph.

I’ve tried adjusting pointHitDetectionRadius and it doesn’t impact this exact problem - the radius of the detection does change but it doesn’t solve the misalignment between the mouse pointer and the tooltip.

The issue seems to exist only when you have a lot of X axis labels as in this chart.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Davy-Fcommented, May 27, 2016

Also seem to be getting this issue. Only happens with a lot of data points. Edit: updated to v2 and this has fixed the problem.

0reactions
fulldecentcommented, Jun 27, 2016

Hello, today I am closing all issues that are only affecting version 1 of Chart.js as WONTFIX.

If this issue does affect version 2 as well, I apologize for the error. Please create a test case against Chart.js 2 using on of the below websites and we will be happy to reopen the issue and update its classification:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Line chart Hover Tooltip is not working - Highcharts
Line chart hover tooltip is not working if two points with different values plotted at the same time. Link to fiddle
Read more >
Chart.js Tooltip over the line not only over points
I have a line chart in chart.js. Now I would like to have a tooltip, when I hover over the line not just...
Read more >
Line chart tooltip issue? - Microsoft Power BI Community
Hello, I have an issue with the line chart. Each time I want to hover over point on the plot, PBI displays not...
Read more >
Chart.js - Line Chart Tooltip Hover Mode - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >
Interactions - Chart.js
By default, these options apply to both the hover and tooltip ... Events that do not fire over chartArea, like mouseout , can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found