Bug in Aspose.Slides for Java - Incorrect Chart Is Displayed After Export

Dear Aspose Support Team,

I hope this message finds you well. We have encountered a critical bug in the Aspose.Slides for Java library, specifically related to incorrect chart display after export. Below are the details of the issue, along with the necessary information for your review:

Reproduction Steps:

  1. Example presentation with an affected chart: ChartBugReproduction.zip (48.6 KB)

  2. Code triggering the bug:

public void chartBugReproduction() throws FileNotFoundException {
	Presentation presentation = new Presentation(
			new FileInputStream(
					new File("/path/to/ChartBugExample.pptx")));

	presentation.save(new FileOutputStream(new File(
			"/path/to/ChartBugExample-exported.pptx")), SaveFormat.Pptx);
}

Issue Description:

  • Expected Chart Appearance: image.png (29.4 KB)

  • Aspose Exported Chart Appearance: image.png (27.0 KB)

Observations:

  • The issue seems to be related to incorrect chart series entries.
  • When selecting the chart and opening “Select Data,” the legend entries indicate 3 missing references (#REF!): image.png (223.4 KB)
  • In the original file, the selected entries are [A1, A2, A3, A4, A5], but in the exported file, they change to [A1, A2, #REF!, A5], which is causing the chart distortion.
  • We attempted to use Aspose to find the incorrect series entries, but we can only identify the working ones (A1-A5).
      var slide = presentation.getSlides().get_Item(0);
      for (var shape : slide.getShapes()) {
      	if (shape instanceof IChart) {
      		var chart = (Chart) shape;
      		for(var series: chart.getChartData().getSeries()){
      			System.out.println(series.getName().getAsCells().get_Item(0).getValue());
      		}
      	}
      }
    
  • Clearing the list surprisingly removes the incorrect entries but doesn’t help us since we cant get the correct series back in the collection.
      var slide = presentation.getSlides().get_Item(0);
      for (var shape : slide.getShapes()) {
      	if (shape instanceof IChart) {
      		chart.getChartData().getSeries().clear();
      	}
      }
    

Questions:

  • Is this behavior expected? This is critical for our use case, and we seek clarification on whether this is a bug, intended functionality and how this could be fixed so we get a exported chart like in the original file.

Environment:

  • Aspose.Slides version: 23.9
  • Java version: 21
  • Operating Systems: macOS 14.2.1 & Windows 11

Your prompt attention to this matter is highly appreciated. Please let us know if any additional information is required to investigate and resolve this issue.

Thank you for your assistance.

Best regards,

Justin Voitel
Domino informatics GmbH

@justinvo,
Thank you for describing the issue. I’ve reproduced the problem you described.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39389

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@andrey.potapov are there any solutions yet ? This bugfix is critical for our solutions with Aspose.Slides for Java

@justinvo,
I’ve requested plans for the issue from our development team. We will let you know soon. Thank you for your patience.

@justinvo,
We expect a fix to be included in Aspose.Slides for Java 24.4. This release will be published in the second half of April and you will be notified.

@justinvo,
The issues you found earlier (filed as SLIDESJAVA-39389) have been fixed in Aspose.Slides for Java 24.4 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.

Thank you for the update!

Unfortunately there are still styling Problems with the export.
Here is a comparision of the Example File (ChartBugReproduction) that I provided:

How it should look like:
image.png (27.3 KB)

How it is exported using Aspose 24.4:
image.png (25.4 KB)
Almost Perfect but look at the Text-Styles of column A2 - A4

Sincerely,
Justin

@justinvo,
Thank you for the note. We sincerely apologize for this omission. I reproduced the problem you noted.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39449

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.