Skip to main content

I'm working with the PowerPointStyler and PowerPoint Writer for the first time, and have gotten pretty good results. I'm applying statistical analysis to my data, and then outputting these statistics as a bar chart to a pptx. My template pptx has graphical images as headers and footers of the slides.

 

One issue I'm experiencing is that the bar chart it creates is the entire size of the slide. So I'm getting overprints with the chart and the template graphics. Is there a way shrink the graph to a custom size from the transformer/writer in FME?

 

Secondly, I'm wondering about the text size of the labels within the chart. I don't see a way to change the size of the labels from FME. Am I overlooking that functionality?

Hello @dustin​ 

I would recommend following the instructions from this writing custom slides with the Powerpoint writer for specifying the chart size. Since you're already using a template Powerpoint, simply use the Slide Master functionality to create the custom slide(s) and insert the placeholder shapes in the size you want.

As for your second question, I suspect it may be a similar scenario to the default text size for Powerpoint tables where it is a limitation on Microsoft's side as explained in my answer in this Community question. I can look into it further next week if you're interested.


Hello @dustin​ 

I would recommend following the instructions from this writing custom slides with the Powerpoint writer for specifying the chart size. Since you're already using a template Powerpoint, simply use the Slide Master functionality to create the custom slide(s) and insert the placeholder shapes in the size you want.

As for your second question, I suspect it may be a similar scenario to the default text size for Powerpoint tables where it is a limitation on Microsoft's side as explained in my answer in this Community question. I can look into it further next week if you're interested.

Hello @dustin​ 

Charts, even in Powerpoints, are handled by Excel and the default chart text size is hard-coded to 18. It may be possible to use a chart template. Since chart templates are not carried through with output files, chart templates can't be used with the Powerpoint writer in FME.

In this case, you may want to create the output Powerpoint file and then extract and edit the XML files contained within the Powerpoint to change the chart text size. I have attached an example of this approach and I hope it helps.


Reply