Hover event in graph Chart.js

๐Ÿ‘:0

The chart is wrapped in a div, why dont you just put a move over on that element

$(function() {
    $("#element").mouseover(function(e) { /* implementation */ });
});

๐Ÿ‘:0

So a little trick I found is you can use the customTooltip option to call your own function. It takes one object as a parameter, and is either false, or the segment that is being hovered over.

Leave a comment