Problem
As a JMP HTML5 tester, what I often do is to generate a JMP report, and then export it to HTML5. However, I want to cover more testing cases for each exporting. For example, for step line chart testing, I want to see if HTML5 behaves correct for line connection types of Step, Centered Step, and other features.
Solution
I use new window to hold all reports. Simply insert JSL expressions into their place holders.
dt = open("$SAMPLE_DATA\Big Class.jmp");
gb_expr1= expr(
Graph Builder(
Size( 284, 292 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
Elements( Line( X, Y, Legend( 6 ), Connection( "Step" ) ) )
););
gb_expr2 = expr(
Graph Builder(
Size( 248, 292 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
Elements( Line( X, Y, Legend( 6 ), Connection( "Centered Step" ) ) )
);
);
gb_expr3 = expr(
Graph Builder(
Size( 284, 292 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
Elements(
Line(
X,
Y,
Legend( 6 ),
Connection( "Step" ),
Smoothness( 0.5 ),
Summary Statistic( "Min" ),
Missing Factors( "Treat as Zero" ),
Missing Values( "Connect Faded" )
)
),
SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model( 6, Properties(
0, {Line Width( 3 )} ) )} ) )
);
);
// main
newwindow("test", outlinebox("test", Hlistbox(gb_expr1, gb_expr2, gb_expr3)));
![2017-12-19_1631.png 2017-12-19_1631.png](https://community.jmp.com/t5/image/serverpage/image-id/8764i317B97FC026EDF7D/image-size/medium?v=v2&px=400)