student student - 1 month ago 14
Javascript Question

Avoid hiding labels in DevExtreme pie chart

To solve the below problem, I've tried setting

and
margin


I've got a pie chart:

proper pie chart label

which renders labels perfectly.

Sometimes when we change the
datasource
- the labels gets collapsed. And shows only
...


collapsed pie chart label

My intuition says this happens because of un-necessary white space on the right side.

How do I avoid this behaviour?

Answer

This is a known issue. But, currently, this behavior cannot be changed. This is in DevExpress' to-do list: dxPieChart - Provide the MinAllowedSizePercentage property.

When implemented, it should make it possible to improve the resulting chart layout by configuring the minimum allowed Pie size.