Chartjs-Property 'chart' does not exist on type โ€“ ChartJS โ€“ Angular 13

0๐Ÿ‘

You can avoid this issue by using the third parameter you get in the onClick listener, this is the chartInstance already:

onClick: (evt, activeEls, chartInstance) => {
  // Custom code
}

Leave a comment