0👍
✅
You will have to add the mousemove
event also. This way you tell the browser to listen to mousemove event for the tooltip.
If you just specify click
event then the chart will not respond to all other events like mousemove
events.
Try this:
events: ['click', 'mousemove' ],
onClick: function (evt, info) {
console.log(evt)
console.log(info)
},
You can look here ( link ) for more details regarding the chart.js events.
Source:stackexchange.com