i have create pie chart with smart label, but output not shown properly.
here is my code and sample output.
SnippetChartSeries 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;