I would like to add an annotation to each individual frame of a graph builder report. Here is a (trivial) example...
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder( Variables( X( :height ), Y( :weight ), Group X( :sex ), Group Y( :age ) ) );
gb << SendToReport( Dispatch( {}, "Graph Builder", FrameBox, Add Text Annotation( Text( "Female-12" ), Filled( 0 ) ) ) );
In this example above, the top left Framebox has an annotation "Female-12" in it. This was done in a hard coded way. I would like to add an annotation to each Frame based on the grouping of data in that frame.
Ideally, I'd like to know what the X-group and Y-group is for each framebox and compose an annotation based on that and add it to each Framebox.
Ideally, I'd like to also redo these annotations after a change has been made to the local data filter in case the assignment of Framebox # to grouping changes as someone clicks through the local data filter.
So - how do I figure out which data is in each framebox?