Donut Chart - Option to show legend at center of donuts when clicked on slice #121
ishail-dev
started this conversation in
Ideas
Replies: 1 comment
-
If this helps, I did this to get roughly centered legends in my donut, Horizontal centering was problematic for some reason, so I did a workaround in the Legends modifier. I suspect how the legendsArrangement argument is implemented but did not research it. Other than that it worked for a legend of up to 8 lines of small text on a full width of screen donut,
Here's the legends config:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for building this open-source chart library for Android. I really appreciate it for all the hard work.
Problem Statement:
For donut chart, currently we have to draw all the legends and chart separately while giving a fixed height for whole block. Since size of the legends can be unpredictable, it really becomes not great UI to either have some empty space or scrollable legends separately. And neither of these looks good.
Suggestion for solution:
Instead of writing legends separately, can we write specific legend(along with percentage) in the center of donut chat whenever a slice is clicked?
Beta Was this translation helpful? Give feedback.
All reactions