cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
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

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

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? 

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