Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong dataIndex returned from click listener #324

Open
RedMapleTech opened this issue Jun 14, 2022 · 2 comments
Open

Wrong dataIndex returned from click listener #324

RedMapleTech opened this issue Jun 14, 2022 · 2 comments

Comments

@RedMapleTech
Copy link

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.

@LeeLenaleee
Copy link
Contributor

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

@lauren-rmtech
Copy link

Hello, Lauren from Red Maple Tech.

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

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants