We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Data Label Position not working

I am trying to set the data label positions using

chart2.NSeries[0].DataLabels.Postion = LabelPositionType.InsideEnd;

but it doesn’t work. Please advise

Hi Craig,

Thanks for your posting and using Aspose.Cells.

Please download and use the latest version: Aspose.Cells
for .NET v8.1.2.5
it is working fine and changing the labels position to inside end successfully.

We have tested this issue with the following code. I have also attached the source Excel file used in this code and output Excel file generated by it and screenshot showing both of them for your reference.


Workbook workbook = new Workbook(“source.xlsx”);

Chart chart = workbook.Worksheets[0].Charts[0];

chart.NSeries[0].DataLabels.Position = LabelPositionType.InsideEnd;


That’s the code I have and it does not work, is there another to position the label. Is it a bug in the older dlls?


Since, you are using quite an older version of Aspose.Cells, so it might be a bug in the older version. We strongly recommend you to upgrade your code and use the latest version of Aspose.Cells. I am afraid, we cannot make amendments in any older Aspose.Cells version. We cannot go against our policy that we should always have to follow. The sample code is the same as in older versions. If it does not work in the older version, there is no alternative but to upgrade to our latest versions (e.g v8.2.x). We request you to kindly give our latest version a try in evaluation mode in separate project if it works so that you could then upgrade to latest version.

Thanks for your understanding and we are sorry for the inconvenience caused!