chartjs-plugin-datalabels
chartjs-plugin-datalabels copied to clipboard
Wrong dataIndex returned from click listener
The click listener regularly (but not always) returns the wrong value for the ctx.dataIndex when being used with a radar diagram. Sometimes it will return 0 when a different data point has been clicked on.
I have managed to fix this bug for my application by using the enter listener to get the dataIndex, which consistently returns the correct dataIndex.
I'm using v2.0.0 with chart.js 3.6.0 and vue 2.6.14.
Seems to work fine, do you have a reproducable sample? https://jsfiddle.net/sfe3qLc4/
Hello, Lauren from Red Maple Tech.
I can no longer reproduce this issue. We are running the latest version.
Thanks.