I would like to know what data is being plotted within each the graph in Graph Builder when using the Wrap option. To be clear here's an example code of the situation:
// Define constants
MoreThanNecessary = 100;
// Open example dataset
dt = Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );
// Randomly exclude rows
rEnd = Random Integer( 1, N Rows() );
rStart = Random Integer( 1, rEnd );
r = dt << Select Rows( rStart::rEnd );
r << Hide and Exclude();
// Plot pie charts using Graph Builder
gb = Graph Builder(
Variables( X( :Number of Fillings ), Wrap( :Age Group ) ),
Elements( Pie( X, Legend( 3 ) ) )
);
// Customize text in each graph
For( i = 1, i <= MoreThanNecessary, i++,
Report( gb )[FrameBox( i )] << Add Graphics Script(
1, Description( "Custom Text for Each Graph" ),
GraphTitle = "Get indication of what data is plotted";
If(
GraphTitle == "25-29",
Text( Right Justified, {1, 0}, "Late 20s" ),
GraphTitle == "30-34",
Text( Right Justified, {1, 0}, "Early 30s" ),
GraphTitle == "35-39",
Text( Right Justified, {1, 0}, "Late 30s" ),
Text( Right Justified, {1, 0}, "40 or over" )
);
)
);