We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Data Labels Are Missing in PPTX

Hi team ,

I am facing the issue of Labels missing in pptx . When I download the ppt and not resetting the labels , then labels go on missing . Can you please check ?

com.aspose aspose-slides 22.5 jdk16

Thanks and Regards,
Anishek Bharti

Thank you for contacting support.

To check the issue on our end, please share the following data and information:

  • input and output presentation files (you can zip and upload them here)
  • code example that reproduces the problem
  • OS version where the code was executed

Ppt samples.7z (496.0 KB)
Code that produced the output with Labels missing

String file = getClass().getClassLoader().getResource("LinkAI_Lite_Template_latest.pptx").getFile();
pres = new Presentation(file);
ISlide slide2 = pres.getSlides().get_Item(1);
IPPImage image2xM = null;
image2xM = slide2.getPresentation().getImages().addImage(imageM);
for (IShape shp : slide2.getShapes()) {
	if (shp.getName().equalsIgnoreCase(VIDEO_TITLE_VIDEO_LENGTH)) {
		((AutoShape) shp).getTextFrame().setText(pptDataLite.getAdName() + getAdDuration(pptDataLite.getVideoLength()));
	} else if(shp.getName().equalsIgnoreCase("Chart 16")) {
		chart = (IChart) shp;
		IChartDataWorkbook fact = chart.getChartData().getChartDataWorkbook();
	    fact.getCell(SHEET_1, 1,0).setValue("IMPACT");
		fact.getCell(SHEET_1, 1, 1).setValue(pptDataLite.getImpact());
		fact.getCell(SHEET_1, 1, 2).setValue(100 - pptDataLite.getImpact());
		setChartColor(shp, formatUtil(String.valueOf(pptDataLite.getImpact())), getUnderPerformingValue(percentileValues,IMPACT), getOverPerformingValue(percentileValues, IMPACT));
	} else if(shp.getName().equalsIgnoreCase("Chart 17")) {
		chart = (IChart) shp;
		IChartDataWorkbook fact = chart.getChartData().getChartDataWorkbook();
		fact.getCell(SHEET_1, 1,0).setValue("POWER");
		fact.getCell(SHEET_1, 1, 1).setValue(pptDataLite.getPower());
		fact.getCell(SHEET_1, 1, 2).setValue(100 - pptDataLite.getPower());
		setChartColor(shp, formatUtil(String.valueOf(pptDataLite.getPower())), getUnderPerformingValue(percentileValues, POWER_INDICATOR), getOverPerformingValue(percentileValues, POWER_INDICATOR));

OS version : Windows 10
JDK : 1.8

Please let me know if you require any other info.


Your zip archive is not containing the “LinkAI_Lite_Template_latest.pptx” file and your code snippet is not compilable. Please share a comprehensive code example and the presentation file.


DigitalAI_Template.pptx in the zipped folder is the file to refer as template and DigitalAI_Test 1_6.30.2022.pptx is the resultant file with labels missing .

if you open both the files , you will clearly understand .

Related to code , the sample which I sent contains changes related to labels “IMPACT” and “POWER” which went missing after these lines .

Kindly help resolving the issue and let me know if you need any other info .


Unfortunately, I have not managed to reproduce the problem you have encountered. Please also note that the template presentation does not contain the Chart 17 on the slide 2. Please try isolating the problem and share a compilable code example that reproduces the problem.