-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incorrect circular chart size when parent is taller than wider and legend not shown #4386
Closed
meronz opened this issue
Apr 4, 2024
· 0 comments
· Fixed by younginnovations/iatipublisher#1494, Pyloris/reactChallange#5 or sgkens/velvetvoid#11 · May be fixed by samul-1/sai_exams_frontend#140 or Niraj-Dilshan/infinity#100
Closed
Incorrect circular chart size when parent is taller than wider and legend not shown #4386
meronz opened this issue
Apr 4, 2024
· 0 comments
· Fixed by younginnovations/iatipublisher#1494, Pyloris/reactChallange#5 or sgkens/velvetvoid#11 · May be fixed by samul-1/sai_exams_frontend#140 or Niraj-Dilshan/infinity#100
Labels
bug
Something isn't working
Comments
This was referenced Jun 2, 2024
This was referenced Jun 9, 2024
This was referenced Jun 13, 2024
This was referenced Jun 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When using Width = 100% and Height = 100%, and the parent is taller than wider, "circular" charts (such as Pie, Polar Area, etc) are not sized correctly. Not showing the legend also seems to be important when reproducing the issue, as showing the label somehow makes the library calculate the correct size.
I'm willing to triage this issue but since I'm not familiar with the codebase some guidance could be helpful.
Steps to Reproduce
Expected Behavior
The chart is centered and it is not clipped on the left and right side
Actual Behavior
The chart is wider than the parent and so it is clipped on the left and right sides.
Screenshots
Reproduction Link
https://codepen.io/meronz/pen/qBwxOOY
The text was updated successfully, but these errors were encountered: