Hi,
I am setting axis label rotation to vertical rotation. But it is not behaving same as MS PPT behaviour.
I am attaching PPT and screen shots to describe the issue.
1.) aspose vertical rotation.png - Aspose Generated PPT file Screen shot.
2.)pptvertical.png - MS PPT screen shot.
3.) pptvertical270rotation.pptx - MS PPT
4..) vertical 270 rotation.pptx - Aspose Generated PPT
Please let me know how can i fix this.
Thanks,
Amit
Hi Amit,
I have observed the requirements shared by you. Please try using the following sample code to serve the purpose. Please share, if I may help you further in this regard.
public static void ChartVertical()
PresentationEx pres = new PresentationEx();
SlideEx sld = pres.Slides[0];
Aspose.Slides.Pptx.ChartEx chart = sld.Shapes.AddChart(ChartTypeEx.ClusteredColumn, 10, 60, 700, 300);
chart.CategoryAxis.TextProperties.TextVerticalType = TextVerticalTypeEx.Vertical270;
chart.CategoryAxis.TextProperties.AnchoringType = TextAnchorTypeEx.Top;
chart.CategoryAxis.TextProperties.CenterText = true;
pres.Write(“D:\Aspose Data\Bar.pptx”);
Many Thanks,