Replies: 1 comment 3 replies
-
Hi The pie chart auto scales when the parent size changes, why is that not working for you? I am curious why is that not enough? The next gif shows the library behaviour, it will always use the minimum of both (width or height) as the constraint to build the pie circumference. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there some way to have a pie chart calculate the proper required height (including it's legend) so the pie chart fills the available width of the container it is in?
Needing to set an explicit height is problematic for me. I'm trying to replace another charting library where I had a pie chart placed in a grid column (WinUI / Uno) that sizes to a percentage of window width, and it would calculate the appropriate height automatically. As the window is resized (and thus the column it is in gets wider/narrower), it would adjust its height accordingly so that the pie chart filled the available width.
Alternatively, I could draw my own legend (outside of the pie chart control), but then I would still need a way to link the height of the chart to its width (so that height == available width and the circle can fill the space properly).
Beta Was this translation helpful? Give feedback.
All reactions