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

Polar area chart not scaling on dataset hide #10337

Closed
MarioMatschgi opened this issue May 5, 2022 · 0 comments · Fixed by #10340
Closed

Polar area chart not scaling on dataset hide #10337

MarioMatschgi opened this issue May 5, 2022 · 0 comments · Fixed by #10340

Comments

@MarioMatschgi
Copy link

MarioMatschgi commented May 5, 2022

Expected behavior

If the user clicks on a label to filter/hide this dataset the diagram should:

  • Hide the slice
  • Radially scale the other slices to fill the gap
  • Change the scale from the center out of the other slices to fit the diagram

Current behavior

If the user clicks on a label to filter/hide this dataset the diagram should:

  • Hide the slice
  • Radially scale the other slices to fill the gap
  • The scale from the center DOES NOT GET CHANGED and the other slices STAY SMALL

image
image

Reproducible sample

https://www.chartjs.org/docs/latest/charts/polar.html

Optional extra steps/info to reproduce

Every Polar area chart is affected. The issue is especially noticeable when there are some really large values and some really small values.

Possible solution

Make the scale smaller/larger depending on what value the largest slice has to fit the available space

Context

No response

chart.js version

latest (v3.7.1)

Browser name and version

any

Link to your project

No response

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