cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
Insert different reports into one JMP report window

 

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

 
JSL Cookbook

If you’re looking for a code snippet or design pattern that performs a common task for your JSL project, the JSL Cookbook is for you.

This knowledge base contains building blocks of JSL code that you can use to reduce the amount of coding you have to do yourself.

It's also a great place to learn from the experts how to use JSL in new ways, with best practices.