Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 4 tasks
praneethmendu opened this issue Apr 25, 2023 · 0 comments
Open
1 of 4 tasks

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

praneethmendu opened this issue Apr 25, 2023 · 0 comments

Comments

@praneethmendu
Copy link

Issue Category

  • Enhancement
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant