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

Add charts to Masters/Templates? #114

Closed
yipiha opened this issue Jun 29, 2017 · 1 comment
Closed

Add charts to Masters/Templates? #114

yipiha opened this issue Jun 29, 2017 · 1 comment
Assignees
Milestone

Comments

@yipiha
Copy link

yipiha commented Jun 29, 2017

Hi,

Can I define charts in my masters? If yes, how (do you have a sample please)?
Also if I understood correctly it's not possible to use existing PPTX as template but do you think a tool/function could be created that extract the masters from an existing PPTX file?

Thanks a lot - your plugin is way easier than other I tried.

@gitbrent gitbrent self-assigned this Jul 2, 2017
@gitbrent gitbrent added this to the 1.7.0 milestone Aug 1, 2017
gitbrent pushed a commit that referenced this issue Aug 1, 2017
@gitbrent
Copy link
Owner

gitbrent commented Aug 1, 2017

Hi @yipiha ,

Thanks for suggesting a new feature. You can now add charts to master slides as well as images, etc. Try it out and let me know what you think.

TITLE_SLIDE: {
  title:  'Corporate Presentation Title Slide',
  objects: [
    { 'line':  { x: 3.5, y:1.00, w:6.00, line:'0088CC', line_size:5 } },
    { 'chart': { type:'PIE', data:[{labels:['R','G','B'], values:[10,10,5]}], opts:{x:0.25, y:0.25, w:3, h:3} } },
    { 'rect':  { x: 0.0, y:5.30, w:'100%', h:0.75, fill:'F1F1F1' } },
    { 'image': { x:11.3, y:6.40, w:1.67, h:0.75, data:pptxgenjsLogoSml } }
  ]
},

gitbrent pushed a commit that referenced this issue Aug 1, 2017
@gitbrent gitbrent closed this as completed Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants