@ipeadmin,
I have observed your requirements and like to share that you can set the label position as fraction of chart width and height. You can set Label’s X and Y position between -1 to 1. The value 0,0 will correspond to default label position. Please observe the following sample code and use it as per your convenience on your end.
public static void TestLabelPosition()
{
Presentation pres = new Presentation();
IChart chart =pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn,20,20,400,400);
chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowValue = true;
//Top right position
chart.ChartData.Series[0].DataPoints[0].Label.X =-1;
chart.ChartData.Series[0].DataPoints[0].Label.Y = -1;
//Actual Label position on desired label
chart.ChartData.Series[0].DataPoints[1].Label.X = 0;
chart.ChartData.Series[0].DataPoints[1].Label.Y = 0;
//Bottom Right
chart.ChartData.Series[0].DataPoints[2].Label.X = 1;
chart.ChartData.Series[0].DataPoints[2].Label.Y = 1;
pres.Save(@"C:\Aspose Data\LabelPostions2.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
}
Many Thanks,