(4-1) ver : aspose-slides.20.9
(4-2) CODE:
public void testSetDataLabelNumberFormat() {
Presentation presentation = new Presentation("chartLabelFont.pptx");
IChart chart = (IChart) presentation.getSlides().get_Item(0).getShapes().get_Item(0);
IChartSeriesCollection seriesCollection = chart.getChartData().getSeries();
IChartCategoryCollection categoryCollection = chart.getChartData().getCategories();
int seriesSize = seriesCollection.size();
int categorySize = categoryCollection.size();
for (int i = 0; i < categorySize; i++) {
for (int j = 0; j < seriesSize; j++) {
IDataLabelFormat idlFormat = seriesCollection.get_Item(j).getDataPoints().get_Item(i).getLabel().getDataLabelFormat();
idlFormat.setNumberFormat("#.##0.00");
}
}
presentation.save("chartLabelFontMissing.pptx", SaveFormat.Pptx);
}
(4-3) result : before_after.jpg (105.8 KB)
(4-4) chartLabelFont.pptx chartLabelFont.zip (254.4 KB)