Dear Aspose expert,
I am trying to hide the category name on the bar chart. If I set the axis invisable, the Y-axis line disappear too, which I want to keep in the chart.
What is the right way to acheive this? I mean only hide the category name but keep the axis line visable.
Best Regards
John
Hi John,
I like to share that you can hide the chart category axis labels as well. Please use the following sample code to serve the purpose.
public static void ModifyBarChart()
String path = “D:\Aspose Data\”;
PresentationEx pres = new PresentationEx();
SlideEx slide = pres.getSlides().get_Item(0);
ChartEx chart = slide.getShapes().addChart(ChartTypeEx.ClusteredColumn, 50, 50, 400, 400);
chart.getCategoryAxis().setTickLabelPosition(TickLabelPositionType.None);
pres.save(path + “ChartNew.pptx”, SaveFormat.Pptx);
Please share, if I may help you further in this regard.
Many Thanks,