This is a migrated thread and some comments may be shown as answers.

Is it possible to more evenly distribute the labels around a pie chart?

3 Answers 356 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 27 Apr 2017, 01:28 PM

When I generate my pie charts, sometimes all of the labels get stacked on top of one another and it shrinks the pie chart down to a tiny size to make room for all of them.

Is there any way to get the chart to move some to the left and some to the right so it doesn't do this?  See the attached image, compare the size of each pie chart and notice how one of them has 6 labels stacked in one spot

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Apr 2017, 02:25 PM
Hello Adam,

Data point labels are positioned automatically based on an internal algorithm. Manual positioning of labels is not supported.
You can test changing the Size of the Graph item, and/or changing the position of the Legend to provide more space in a specific direction.

If it works for you, you can hide the Graph.Series.DataPointLabels through the Style.Visible property. Then you can use the Graph.Series.LegendItem.Value to provide more details about each slice, where slice will be distinguishable by color.


I hope this helps.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Adam
Top achievements
Rank 1
answered on 27 Apr 2017, 02:43 PM

Thank you.  I hope you can see why this is a bit of an issue.  

Consider this a feature request I suppose.  If you look at my first image attachment, the top 3 labels in the stack of 6 could be moved to the right side of the pie chart, but because of the apparent clockwise nature of your algorithm, the right side of the chart is never considered during automatic label placement once the algorithm passes the 180° mark.  I imagine this would be a tricky thing to pull off in code on your end.. but maybe worth looking into someday.

For now this isn't the end of the world, just a minor annoyance.  Thanks again

0
Stef
Telerik team
answered on 02 May 2017, 12:23 PM
Hi Adam,

Thank you for your understanding.
The question is forwarded to the development team, but my recommendation is to have it logged as a feature request for having additional positioning options for data point labels.

Another workaround is to change the size of the Graph item, or to reorder series - the order of pies is taken from Graph.Series or/and Graph.Seriesgroups.Sortings.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
Stef
Telerik team
Adam
Top achievements
Rank 1
Share this question
or