Chartjs-Using click event handler prevents tooltips from displaying on hover

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.

Leave a comment