3D Pie chart text overlap

The default chart generated when I create a 3D pie chart has the text of some slices overlap with the chart itself. Trying to correct this by changing ConfigItems.PieItem.LabelStyle to ChartAccumulationLabelStyle.OutsideInArea makes some of the text from one slice to overlap with the text from other slice. Does anybody know how to draw ticks from the slice to the text or just position the text better so this could be avoided?

1 Reply

MK Muneesh Kumar G Syncfusion Team September 14, 2018 10:25 AM UTC

Hi Saulo, 
 
Greetings from Syncfusion, we have analyzed your query. To avoid the reported problem, we suggest you to place the labels at OutsideInColumn position and enable the OptimizePiePointPositions property of ChartSeries. When OptimizePiePointPositions property is enabled, pie slices will be placed at optimized positions. 
 
Note: If OptimizePiePointPositions property is enabled, then rendering order of slices may change to place them at optimized position. 
 
Please refer the following code snippet to achieve this 
 
[C#] 
 
            //Optimize the position of slices 
            series1.OptimizePiePointPositions = true; 
 
            //Place the data labels of pie chart at OutsideInColumn position 
            series1.ConfigItems.PieItem.LabelStyle = ChartAccumulationLabelStyle.OutsideInColumn; 
 
 
 
Please refer the below user documentation for more details about OptimizePiePointPositions and LabelStyle.  
 
[Data label of pie chart] 
 
 
 
Hope this helps.  
 
Regards, 
Muneesh Kumar G. 


Loader.
Up arrow icon