I have been attempting to write mouse click events for a pie chart in ChartJS 2.X but the “getSegmentsAtEvent(evt)” function doesn’t seem to be available in the newer version.
Instead, I have getDataelementAtEvenyt(evt), getElementAtEvent(evt), and getElementsAtEvent(evt).
The problem is I am not sure how to use the object returned; it doesn’t have any of the previous types of functions/data that the existing object returned used to have.
How do I use the new objects/classes returned?
Thank you for your time.