0👍
AFAIK every element has got datasetIndex
and index
properties related to the drawn dataset.
Emitting the click
event on the canvas (a specific point) you could check that dataset index and index are what you are expecting
- Chartjs-PHP/Laravel – Chartjs implode does not function
- Chartjs-Looping through json array properties
Source:stackexchange.com