In the documentation for Chart.js, I found a reference to an onClick function that is triggered whenever a click event occurs on the chart. The code snippet provided looks like this:
options: {
onClick: this.Function
}
Function(event, array){
...
}
However, it seems that the function is passing the entire context and I'm not sure how to determine which specific part of the chart was clicked. Any insights on this?