Failed to Round Values of Data Labels for Pie and Pyramid Charts

Hi, see the attached source code with the failing tests.

The attached example demonstrates two cases

  • Pyramid chart generation
  • Pie chart generation

The custom precision format is set on data labels for both scenarios.
Both scenarios are reproduced for PPT and PPTX formats.

Following was observed:

  • It looks like locale may be different for PPT and PPTX formats generation.
    Numbers were rendered with “.” for PPT and “,” for PPTX as fractional part
    separator in our case.
  • Pie chart is rendered to PPT with ignored precision format (PPTX is Ok)
  • Pyramid chart is rendered to PPTX with ignored precision format (PPT is Ok).

aspose-lost-precision.zip (6.3 KB)

@alchilin,

Can you please provide the generated presentation and its preview image on your end. Please also provide the desired result too so that we my assist you further.

Hello,

Custom precision format (“0.00”) was properly applied for pieWithLabels.pptx (as in pieWithLabels.pptx.jpg image) and rendered into 15,22 and 25,22 data labels and
for pyramidWithLabels.ppt (as in pyramidWithLabels.ppt.jpg image) and rendered into 15.22 and 25.22 (note: “.” was used, instead of “,”, “.” is preferred).

Regards,
Andrey

pieWithLabels.ppt.jpg (41.8 KB)
pieWithLabels.ppt.zip (23.9 KB)
pieWithLabels.pptx.jpg (30.8 KB)
pieWithLabels.pptx.zip (30.2 KB)
pyramidWithLabels.ppt.jpg (37.4 KB)
pyramidWithLabels.ppt.zip (22.2 KB)
pyramidWithLabels.pptx.jpg (30.6 KB)
pyramidWithLabels.pptx.zip (56.2 KB)

@ygr,

I have added a ticket with ID SLIDESJAVA-38155 in our issue tracking system to further investigate and resolve the issue on our end. We will share the feedback with you as soon as the issue will be fixed.

The issues you have found earlier (filed as SLIDESJAVA-38155) have been fixed in Aspose.Slides for Java 22.3 (ZIP).
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.