Aspose.Slides cannot format value axis of a chart

No, it’s fine.


But, if you want, answer my previous question :

"Isn’t this line (series.Labels.ShowPercentage = true;) supposed to show/hide the percentage sign on the value of the label that is placed on top of the bars of a bar chart?"

I didn’t expect it to cause this behaviour.

Hi,


I have observed the requirement shared and like to share that ShowPercentage is actually only used if the chart type is Pie or Pie3D. For rest of chart types the ShowPercentage property does not work. You can even verify the same in PowerPoint. For assurance, you may please try using following sample code to serve the purpose.

PresentationEx pres = new PresentationEx();
SlideEx slide = pres.Slides[0];

ChartEx chart = slide.Shapes.AddChart(ChartTypeEx.Pie, 100, 100, 300, 300);
chart.ChartData.Series[0].Labels.ShowPercentage = true;

pres.Write(“D:\Aspose Data\TestPie.pptx”);


Many Thanks,