Here is an example using JSL.
Names Default to Here(1);
dt = Open("$sample_data/fitness.jmp");
gb = dt << Graph Builder(
Size( 534, 454 ),
Show Control Panel( 0 ),
Variables(
X( :Weight ),
X( :Weight ),
Y( :Oxy, Side( "Right" ) ),
Y( :Runtime, Position( 1 ) ),
Y( :RunPulse ),
Y( :RstPulse, Position( 2 ), Side( "Right" ) ),
Overlay( :Sex )
),
Elements(
Position( 1, 1 ),
Points( X, Y( 2 ), Legend( 240 ) ),
Smoother( X, Y( 2 ), Legend( 241 ) )
),
Elements(
Position( 1, 2 ),
Points( X, Y( 2 ), Legend( 246 ) ),
Smoother( X, Y( 2 ), Legend( 247 ) )
),
Elements(
Position( 2, 1 ),
Points( X, Y( 2 ), Legend( 248 ) ),
Smoother( X, Y( 2 ), Legend( 249 ) )
),
Elements(
Position( 2, 2 ),
Points( X, Y( 2 ), Legend( 254 ) ),
Smoother( X, Y( 2 ), Legend( 255 ) )
)
);