Percentage and Name of NSeries

Hi,

1.) I wanted to show the percentage values and the category names in the pie chart. But when coding like that:

excel.Worksheets[0].Charts[chartIndex].NSeries[index].DataLabels.IsCategoryNameShown = true; excel.Worksheets[0].Charts[chartIndex].NSeries[index].DataLabels.IsPercentageShown = true;

it shows only the last one that has been set to true. Am I doing something wrong?

2.) When adding a pie chart there are two border lines within the chart. I figured out how to remove the border of the whole chart area. But I couldn’t find the border of the pie itself.

Michael Mann

  1. is a bug. I fixed it. You can get the hotfix in a few days.

    2) You can try to use chart.PlotArea.Border.IsVisible = false; to remove the border of pie. Or use excel.Worksheets[0].Charts[chartIndex].NSeries[index].Line.IsVisible = false; to remove the border within the pie.