gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.62k stars 611 forks source link

FormatCode not working in MSOffice and Google Slides #1309

Open ViniciusM241CodeBit opened 8 months ago

ViniciusM241CodeBit commented 8 months ago

FormatCode not working in MSOffice and Google Slides

Issue Category

Product Versions

Desired Behavior

Created slides should use the formatCode configured in dataLabelFormatCode to show the values using a mask in MSOffice and Google Slides, though it just works in LibreOffice.

Observed Behavior

Data is shown without mask. Example: 10% => 0.1

LibreOffice:

Screen Shot 2023-11-30 at 10 26 44

Google Slides:

Screen Shot 2023-11-30 at 10 27 22

Steps to Reproduce

Create a pptx file using formatCode in dataLabelFormatCode or valAxisLabelFormatCode and then open it in Google Slides or MSOffice PowerPoint.