Free Support Forum - aspose.com

Unable to set the Label Position for Bar Chart Datalabels

Is there a way to set the Datalabel position for a Bar chart? I can't find the method to do this setting.
I would like to set the alignment of datalabel position = Inside base

Thanks!

This feature is not supported yet.

when can we expect this feature be in?

It will be available in about 1-2 weeks.

LC,

Has this been resolved? If so, what's the method or property to call to change the datalabel alignment.

Thanks

James

Hi James,

Please try the attached fix with the following sample code:

int chartIndex2 = excel.Worksheets[0].Charts.Add(ChartType.Column, 3, 0, 19, 6);
Chart chart2 = excel.Worksheets[0].Charts[chartIndex2];
chart2.NSeries.Add("a1:a3",true);
chart2.NSeries[0].DataLabels.IsCategoryNameShown = true;
chart2.NSeries[0].DataLabels.Postion = LabelPositionType.InsideEnd;

Is there a way to rotate the datalabels?

No. This feature is not supported yet. We will check this feature and add it in the future release.