Hi I have an issue where I don’t see the leader lines on my pie chart.
can you please confirm that this feature is working and send me an example?
code is attached
// set the explosion of the chart to 3 %.
chart.NSeries[0].Explosion = 3;
chart.FirstSliceAngle = 180;
chart.NSeries[0].HasLeaderLines = true;
// Define a Palette of colours.
int counter = 0;
if (Palette != null)
{
foreach(Color c in Palette)
{
chart.NSeries[0].Points[counter].Area.ForegroundColor = c;
counter++;
}
}
for (int i = 0; i < chart.NSeries[0].Points.Count; i++)
{
chart.NSeries[0].Points[i].DataLabels.TextFont.Name = “Arial”;
chart.NSeries[0].Points[i].DataLabels.TextFont.DoubleSize = 9.5;
chart.NSeries[0].Points[i].DataLabels.Position = LabelPositionType.BestFit;
chart.NSeries[0].Points[i].DataLabels.IsAutomaticSize = true;
chart.NSeries[0].Points[i].DataLabels.ShowPercentage = true;
chart.NSeries[0].Points[i].DataLabels.ShowCategoryName = true;
chart.NSeries[0].Points[i].DataLabels.NumberFormat = “0.00”;
}