I've recently managed to incorporate an event based on this post, but unfortunately, it's not being triggered. Any thoughts on why that might be? For reference, I am utilizing the default chart.js legend.
Chart.helpers.each(vm.chart.legend.legendItems, function(legendNode, index) {
Chart.helpers.addEvent(legendNode, 'mouseover', function() {
console.log('event triggered!');
});
});
A Brief Overview of the Code: This code snippet adds the specified event to each individual legend item.
Tools Utilized: angularjs and chartjs 2.1.6