0👍
The onClick
of the chart.js options won’t work, these events seems to work only "inside" of the chart-area. If you check the documentation it doesn’t state this explicitly, but if you read all the modes you see, that they are all geared to getting position/items/… relative to data-point (link to documentation).
the only way would be over a eventlistener. something like this (I would keep it ease for debug reasons):
<canvas ... (click)="chartClicked($event)">
but I don’t know much about Angular.
Source:stackexchange.com