-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Waterfall chart throws Zipped file not found: ppt/charts/chartNaN.xml #28
Comments
Hi! I'm glad you like pptx-automizer! :) |
I'm still working on this in a seperate branch, but it requires some refactoring. This problem also affects e.g. map charts, needs to be solved. |
Hi, any update on this issue? |
Hi, I'm very busy at the moment, but I'll try to solve this by the end of the week. |
Hi @AlexanderKulia, I could make some steps towards |
This should work now! Please test it with your custom waterfall chart. Use a modifier like this: slide.addElement('ChartWaterfall', 1, 'Waterfall 1', [
modify.setExtendedChartData(<ChartData>{
series: [{ label: 'series 1' }],
categories: [
{ label: 'cat 2-1', values: [100] },
{ label: 'cat 2-2', values: [20] },
{ label: 'cat 2-3', values: [50] },
{ label: 'cat 2-4', values: [-40] },
{ label: 'cat 2-5', values: [130] },
{ label: 'cat 2-6', values: [-60] },
{ label: 'cat 2-7', values: [70] },
{ label: 'cat 2-8', values: [140] },
],
}),
]); Please notice:
I have only tested ppt's default waterfall chart. Please let me know if this works for your stuff, too 😃 PS: Please excuse the confusing merges an PRs, I'm still practising on how to keep branches in sync. 😅 |
hey, thank you for the update. will check the changes on the weekend and let you know |
hi @singerla I was able to add a waterfall chart and it looks good to me. however I noticed that I cannot view Excel data by right clicking on the newly added waterfall chart. Excel just opens its default page, not the data sheet Can you reproduce the issue at you end? import Automizer, { ChartData, modify } from './index';
const automizer = new Automizer({
templateDir: '.',
outputDir: '.',
});
const main = async () => {
const ppt = automizer.loadRoot('root.pptx').load('charts.pptx', 'charts');
ppt.addSlide('charts', 1, (slide) => {
slide.addElement('charts', 1, 'WATERFALL', [
modify.setExtendedChartData(<ChartData>{
series: [{ label: 'VALUE' }],
categories: [
{ label: 'CAT1', values: [856] },
{ label: 'CAT2', values: [-760] },
{ label: 'CAT3', values: [96] },
],
}),
]);
});
const res = await ppt.write('out.pptx');
console.log(res);
};
main(); |
I'm sorry, can't reproduce with
Excel tells you more about errors inside a file: You can unzip your output-pptx an go to embeddings-directory. Open the the files with a |
My bad, I thought A1 wasn't empty but it was. Editing works now 👍 |
Allright, I'm glad to hear :) Thanks a lot again for mentioning this issue! |
Hi, very cool library! Unfortunately, I encountered an issue that prevents me from using waterfall charts.
Stack trace
Steps to reproduce:
Minimal code
System
macOS Monterey v12.6
PowerPoint for Mac v16.66 (22100900)
The text was updated successfully, but these errors were encountered: