gitbrent / PptxGenJS

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

Keynote cannot process the most basic tables [BUG] #1242

Open praneethmendu opened 1 year ago

praneethmendu commented 1 year ago

Issue Category

Product Versions

Desired Behavior

I have the most basic table here

import pptxgen from "pptxgenjs";

let pptx = new pptxgen();
let slide = pptx.addSlide();

let chartData = [
    {
      "name": "Nunca",
      "labels": [
        "Belleza",
        "Moda"
      ],
      "values": [
        0.058,
        0.023
      ]
    }
  ]

slide.addChart("bar", chartData);

pptx.writeFile({ fileName: "PptxGenJS-Demo"});

here is what the result looks on PowerPoint online

and also on google slides

Observed Behavior

But when it comes to keynote this is what I see, it says : "the file format is invalid"

From more complex attempts I know what text renders fine only graphs and stuff are the issue

Steps to Reproduce

run npm init and npm i pptxgenjs in an empty folder and run the above code