Hi,
I have a long list of response variables to graph and I'd like to group them in separate windows where each window is a pre-defined category. Then I want to combine all the reports (graph windows) and create a Dashboard. When I go to Window -> Combine Windows (which I had used before for different purposes) the reports are not listed as options for combining. Can anyone help please?
Below is the JMP script I used to generate the graphs with a sample data table. For this example, suppose we want a separate graph window for each airline.
Thank you.
Derchieh
Names Default to Here(1);
sourcedt = Open("$SAMPLE_DATA\Airline Delays.jmp");
dt = sourcedt << Stack(
columns( :Elapsed Time, :Arrival Delay, :Distance ),
Source Label Column( "Label" ),
Stacked Data Column( "Value" )
);
Summarize(dt, al = By(:Airline));
Summarize(dt, mon = By(:Month));
Summarize(dt, para = By(:Label));
For (j = 1, j <= NItems(al), j++,
New Window( al[j],
V List Box(
For (i = 1, i <= NItems(para), i++,
Graph Builder(
Size(230, 300),
Fit to Window( "Off" ),
Show Control Panel(0),
Variables( X( :Month ), Y( :Value ), Overlay( :Day of Week ) ),
Elements( Points( X, Y, Legend( 1 ) ) ),
Where( :Airline == al[j] & :Label == para[i] ),
SendToReport(
Dispatch(
{},
"Value",
ScaleBox,
{Min( -10 ), Minor Ticks( 0 )}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( para[i] )} )
)
) << report;
)
)
)
);