Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Bug - Hover on element, activates multiple hover states

Open dbsimeonov opened this issue 7 years ago • 1 comments

Versions: "chart.js": "^2.7.1", "vue": "^2.5.17",

Tested on: Chrome 74.0, Macbook Pro 13'

Expected Behavior / Current Behavior

On the attached images you can notice that when hovering on one of the dots - it activates with the 'active' colour all of the bottom ones, on the other image is the expected behaviour which works on all dots without the last one.

Possible Solution / Context

As I noticed that bug has been reported by other people but have not seen exactly the same issue. I am using hover: { mode: 'nearest' }, as I read that should fix the issue - but I still have the last element activating multiple points.

hhover_right hhover_wrong

dbsimeonov avatar Jun 10 '19 10:06 dbsimeonov

See Interaction modes Also consider updating to latest version. (nearest mode was changed in 2.8)

kurkle avatar Jun 10 '19 16:06 kurkle