Skip to content

Adding charts and media together is causing a pptx error, and repair is needed. #1020

@mvecsernyes

Description

@mvecsernyes

Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Version

Please specify what version of the library you are using: [ 3.9.0-beta ]

Please specify what version(s) of PowerPoint you are targeting: [ PowerPoint 2016 ]

Expected / Desired Behavior / Question

addChart and addMedia(video type) can be used together without repairing the generated file

Observed Behavior

I have not looked into, but when I use addMedia (video type) and addChart() together PowerPoint needs to repair it

Steps to Reproduce

Add the following line to demos/node/demo.js and run node demo.js

	slide.addChart(pptx.ChartType.bar3d, [
			{
				name: 'Income',
				labels: ['2005', '2006', '2007', '2008', '2009'],
				values: [23.5, 26.2, 30.1, 29.5, 24.6]
			},
			{
				name: 'Expense',
				labels: ['2005', '2006', '2007', '2008', '2009'],
				values: [18.1, 22.8, 23.9, 25.1, 25]
			}
		], {x: 1, y: 3, w: 4, h: 3});
			 
	slide.addMedia({type: "video", path: "video.mp4"});

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions