Polar charts - possible getElementAtEvent() problem?
Currently integrating v2.0 dev into our dashboard app, a fantastic improvement on v1.0.
We're having problems using the getElementAtEvent() method in multi-dataset Polar charts - the results that are returned seem inconsistent, sometimes you get multiple data objects returned, other times you get just the dataset clicked on.
See fiddle here - try clicking on one of the inner elements - you'll get two objects back rather than one. There's no consistency of the return order either, so you can't take the first/last element: https://jsfiddle.net/09kz0ect/
For me, the function seems working fine
BUT, the fact is that the 2 datasets does not stack, they both start on the center. The "stacked" version of the polar charts does not exists (yet), but has already been asked recently https://github.com/nnnick/Chart.js/issues/1782
for your issue, if you have only 2 datasets, you can try something as : if click return 2 objects, only take in consideration the one with the lowest value
Closing as duplicate of #1782 since it's the underlying issue. I'm more than happy to look over a PR adding stacked polar area charts. The bulk of the work would be in src/controllers/controller.polarArea.js