1👍
I had this same problem and it came down to the version of chart.js.
I was using chart.js v3.5.1.
When I switched to v2.9.4 the onClick was resolved.
Source:stackexchange.com
1👍
I had this same problem and it came down to the version of chart.js.
I was using chart.js v3.5.1.
When I switched to v2.9.4 the onClick was resolved.