This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have had a problem with pie chart labels overlaying each other and/or extending outside the plot area (and cut off). I have made good progress on a class that moves the labels in the chart canvas around to improve the placement. In some cases, however, moving the labels is not enough and I need to shrink the pie to make more space for labels. I have not been able to figure out how to do this. I see a RadiusFactor property of the PieSlice, but reducing these after the chart is displayed seems to have no effect. Maybe I would have to manually create the pie slices with a reduced RadiusFactor? What would be the best way to do reduce the pie radius? Edit: I figured one way to do this--I set the RadiusBinding of the PieSeries to bind to a property that returns the new radius factor that I want. I used a binding with a PropertyDescriptor so I didn't have to actually modify my source items. Changing the RadiusBinding does not seem to cause the chart to rebuild (contrary to my earlier edit) so I have to force the chart to rebuild by doing something like changing the ShowDataLabelLines property. Is there a better way? |
|
|
Hello Peter Since the RadiusBinding is for changing the size of individual pie slices, I have added a new RadiusFactor property to the PieChart control which affects the overall size of the rendered data. The default of this is 0.8 - so as not to change the existing behaviour. Changing this property will update the graphics. This property will be included in the next nightly builds. -Jason |
|
|
Hi Jason, This new property works perfectly. Thanks. Peter |
|