chartjs-plugin-datalabels icon indicating copy to clipboard operation
chartjs-plugin-datalabels copied to clipboard

Wrong dataIndex returned from click listener

Open RedMapleTech opened this issue 3 years ago • 2 comments

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.

RedMapleTech avatar Jun 14 '22 08:06 RedMapleTech

Seems to work fine, do you have a reproducable sample? https://jsfiddle.net/sfe3qLc4/

LeeLenaleee avatar Jun 14 '22 10:06 LeeLenaleee

Hello, Lauren from Red Maple Tech.

I can no longer reproduce this issue. We are running the latest version.

Thanks.

lauren-rmtech avatar Feb 15 '23 15:02 lauren-rmtech