PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Keynote cannot process the most basic tables [BUG]

Open praneethmendu opened this issue 2 years ago • 0 comments

Issue Category

  • [ ] Enhancement
  • [x] Bug
  • [ ] Question
  • [ ] Documentation gap/issue

Product Versions

  • Please specify what version of the library you are using......: [3.12.0]
  • Please specify what version(s) of KEYNOTE you are targeting: [version 12.1 (7034.0.86)]

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

praneethmendu avatar Apr 25 '23 15:04 praneethmendu