chart.NSeries[0].HasLeaderLines not applied

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”;
}

Hi,

Please try the latest version:
Aspose.Cells for .NET v7.0.2.7 and see if it resolves your problem.

If the problem persists, then please provide us sample output file and the screenshot to highlight the leader lines.