1👍
onHover API
options: {
// LOOK AT ME!!! I'M SO IMPORTANT!!!
onHover: function onHover (evt, activeElements) {
if (!activeElements || !activeElements.length) return;
// logic operation
this.update();
},
},
https://www.chartjs.org/docs/latest/configuration/legend.html
Source:stackexchange.com