Here is a simple example. I want to separately plot contours for three pulse values versus Oxy. I stack the three columns and call it Pulse. The source column names are saved in a new indicator column that is used in the Overlay role.
dt1 = Open( "$SAMPLE_DATA/Fitness.jmp" );
dt2 = dt1 << Stack(
Columns( :RunPulse, :RstPulse, :MaxPulse ),
Source Label Column( "Source" ),
Stacked Data Column( "Pulse" )
);
Close( dt1 );
dt2 << Graph Builder(
Size( 530, 452 ),
Show Control Panel( 0 ),
Variables( X( :Oxy ), Y( :Pulse ), Overlay( :Source ) ),
Elements( Contour( X, Y, Legend( 5 ) ) )
);