cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
NGC_DAquila
Level II

How to export multiple graphs to Powerpoint

I am using the column switcher to change my graph but i want it to iterate through each of the "switchers" and print each onto a powerpoint slide. Is this possible in JMP18?

1 ACCEPTED SOLUTION

Accepted Solutions
mmarchandFSLR
Level VI

Re: How to export multiple graphs to Powerpoint

Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Hollywood Movies.jmp" );
gb = dt << Graph Builder(
	Size( 686, 572 ),
	Variables( X( :Genre ), Y( :Opening Wknd Gross ) ),
	Show Control Panel( 0 ),
	Elements(
		Bar(
			X,
			Y,
			Legend( 7 ),
			Bar Style( "Side by side" ),
			Summary Statistic( "Mean" )
		)
	)
);
cs = gb << Column Switcher(
		Opening Wknd Gross,
		{Rotten Tomatoes Score, Audience Score, Domestic Gross, Foreign Gross,
		World Gross, Production Budget, Profitability, Opening Wknd Gross},
		Close Outline( 1 )
	);
pptx_loc = "$DOCUMENTS/powerpoint_test.pptx";
gb << Save Presentation( pptx_loc );
For Each( {v, i}, Remove( cs << Get List, 1 ), cs << Next; gb << Save Presentation( pptx_loc, Append ) )

View solution in original post

4 REPLIES 4
mmarchandFSLR
Level VI

Re: How to export multiple graphs to Powerpoint

Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Hollywood Movies.jmp" );
gb = dt << Graph Builder(
	Size( 686, 572 ),
	Variables( X( :Genre ), Y( :Opening Wknd Gross ) ),
	Show Control Panel( 0 ),
	Elements(
		Bar(
			X,
			Y,
			Legend( 7 ),
			Bar Style( "Side by side" ),
			Summary Statistic( "Mean" )
		)
	)
);
cs = gb << Column Switcher(
		Opening Wknd Gross,
		{Rotten Tomatoes Score, Audience Score, Domestic Gross, Foreign Gross,
		World Gross, Production Budget, Profitability, Opening Wknd Gross},
		Close Outline( 1 )
	);
pptx_loc = "$DOCUMENTS/powerpoint_test.pptx";
gb << Save Presentation( pptx_loc );
For Each( {v, i}, Remove( cs << Get List, 1 ), cs << Next; gb << Save Presentation( pptx_loc, Append ) )
NGC_DAquila
Level II

Re: How to export multiple graphs to Powerpoint

Thank you Very Much this worked flawlessly i am new to the program but this i very easy to follow.

NGC_DAquila
Level II

Re: How to export multiple graphs to Powerpoint

Is there a way to use a standardize the powerpoint format that is used when creating this report? also removing the words "Graph Builder" from the bottom left? 

mmarchandFSLR
Level VI

Re: How to export multiple graphs to Powerpoint

Others may know the <<Save Presentation functionality better than I do.  It appears there's an option to specify a template.  When I want total control over the PowerPoint format, I use python.  One example in this post.

Recommended Articles