Instead of trying to write the code and checking how it works ...
Try the inverse approach:
After creating a complicated plot in Graph Builder, inspect the code and draw conclusions:
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Variables(
X( :height ),
Y( :name ),
Y( :weight ),
Y( :height, Position( 2 ) ),
Y( :age ),
Overlay( :sex )
),
Elements( Position( 1, 1 ), Points( X, Y ) ),
Elements(
Position( 1, 2 ),
Points( X, Y( 1 ), Y( 2 ), Legend( 1 ) ),
Smoother( X, Y( 1 ), Y( 2 ), Legend( 2 ) )
),
Elements( Position( 1, 3 ), Points( X, Y ) )
);
if there are just 2 items, there is no difference between adding a second entry - and adding a second entry as second.
Position(2) makes sense for three and more items. By default, the third item is added as third. If you want to do something else, you can add it at position(2).