You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
force the pie chart to adapt to the width of the legend or
format pie chart legend labels to be multiline?
i have a limited amount of space within the widget this chart is rendered so either way will help.
without setting anything...you can see the 'kg' unit has been clipped at the boundary of the component. Ideally id prefer that the legend does not clip and instead force the pie chart width to adjust to cater for the change.
so as a temp fix ive guestimated a min width for the legend for the moment however larger numbers are also going to inevitably clip off the side. Now when i try to create a custom label adapter with the '\n' value to create new lines...i get the below wierdness where it doesn't wrap back to the start of the new line.
for context, this is the adapter im using for the pie chart legend label
Question
Is there a way to either
i have a limited amount of space within the widget this chart is rendered so either way will help.
without setting anything...you can see the 'kg' unit has been clipped at the boundary of the component. Ideally id prefer that the legend does not clip and instead force the pie chart width to adjust to cater for the change.
so as a temp fix ive guestimated a min width for the legend for the moment however larger numbers are also going to inevitably clip off the side. Now when i try to create a custom label adapter with the '\n' value to create new lines...i get the below wierdness where it doesn't wrap back to the start of the new line.
for context, this is the adapter im using for the pie chart legend label
Environment (if applicable)
The text was updated successfully, but these errors were encountered: