student student - 10 months ago 86
Javascript Question

Avoid hiding labels in DevExtreme pie chart

To solve the below problem, I've tried setting


I've got a pie chart:

proper pie chart label

which renders labels perfectly.

Sometimes when we change the
- 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 Source

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.