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

HTML Legend example does not work with Pie charts #9038

Closed
1 of 3 tasks
ssbb opened this issue May 5, 2021 · 0 comments · Fixed by #9044
Closed
1 of 3 tasks

HTML Legend example does not work with Pie charts #9038

ssbb opened this issue May 5, 2021 · 0 comments · Fixed by #9044

Comments

@ssbb
Copy link

ssbb commented May 5, 2021

Documentation Is:

  • Missing or needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

Looks like Pie and Doughnut overriding legend plugin generateLabels so there is no datasetIndex index at all.

Your Proposal for Changes

Mention this fact so it will be clear or add support for Pie charts.

Looks like for Pie charts chart.toggleDataVisibility(item.index); should be used instead of setDatasetVisibility.

Example

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

Successfully merging a pull request may close this issue.

2 participants