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 ) )