Smart Label for pie chart

i have create pie chart with smart label, but output not shown properly.

here is my code and sample output.

Snippet
ChartSeries series1 = new ChartSeries("Market");
			series1.Points.Add(0, 94);
			series1.Points.Add(1, 1);
			series1.Points.Add(2, 1);
			series1.Points.Add(3, 1);
			series1.Points.Add(4, 1);
            series1.Points.Add(5, 1); 
		    series1.Points.Add(6, 1);          
            series1.Type = ChartSeriesType.Pie;			
			this.chartControl1.Series.Add(series1);
            series1.OptimizePiePointPositions = this.checkBox1.Checked;
 
            for (int i = 0; i < series1.Points.Count; i++)
                series1.Styles[i].Border.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
            series1.Styles[0].Text = string.Format("Production {0}%", series1.Points[0].YValues[0]);
			series1.Styles[1].Text = string.Format("Labor {0}%", series1.Points[1].YValues[0]);
			series1.Styles[2].Text = string.Format("Facilities {0}%", series1.Points[2].YValues[0]);
			series1.Styles[3].Text = string.Format("Taxes {0}%", series1.Points[3].YValues[0]);
			series1.Styles[4].Text = string.Format("Insurance{0}%", series1.Points[4].YValues[0]);
			series1.Styles[5].Text = string.Format("Licenses {0}%", series1.Points[5].YValues[0]);
			series1.Styles[6].Text = string.Format("Legal {0}%", series1.Points[6].YValues[0]);
            //series1.ConfigItems.PieItem.LabelStyle = ChartAccumulationLabelStyle.OutsideInColumn;
            series1.ConfigItems.PieItem.LabelStyle = ChartAccumulationLabelStyle.OutsideInArea;
            series1.Style.DisplayText = true;
            series1.Style.Font.Size = 8.0f;
            series1.ConfigItems.PieItem.AngleOffset = 60;
 
            series1.SmartLabels = true;
            series1.SmartLabelsBorderColor = Color.Yellow;
            series1.SmartLabelsBorderWidth = 2;

pie chart sync 0.PNG


1 Reply

YP Yuvaraj Palanisamy Syncfusion Team July 19, 2021 09:18 AM UTC

Hi Sysy,  
  
Greetings from Syncfusion.  
  
We have analyzed your query and currently we didn’t have smart label support for pie series in Windows Forms. We have already logged this as a feature request, and it can be tracked through our feedback portal below.   
    
    
We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release.    
    
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.   
  
Regards,  
Yuvaraj. 


Loader.
Up arrow icon