Add a click event to the bar chart of chartjs

๐Ÿ‘:-1

Try using the event parameter. Every function called by your webpage has an event object as the last parameter.

You can read more about the event object here

I suspect you would use something like event.target to get the specific node you clicked on.

Leave a comment