[Chartjs]-Vue 3 chart js chart is undefined in click event

1๐Ÿ‘

โœ…

As described in the V3 migration guide

getElementAtEvent is replaced with chart.getElementsAtEventForMode(e, 'nearest', { intersect: true }, false)

working sandbox link:
https://stackblitz.com/edit/github-ofrpcb-srknqa?file=src%2FApp.vue

Leave a comment