To add a legend to a graph, send the Row Legend message to the frame box. In the Row Legend message, specify which column you want to base the legend on and whether the legend affects colors and markers.
For example, using Big Class.jmp, submit the following JSL to turn on a legend based on the age column. Set both colors and markers by values in the age column.
biv = dt << Bivariate( y( :height ), x( :weight ) );
rbiv = biv << Report;
To use a continuous scale if your variable is nominal or ordinal, you can use a continuous color theme with the Continuous Scale( 1 ).
biv = dt << Bivariate( y( :weight ), x( :height ) );
rbiv = biv << Report;
To interactively add a legend, right-click the graph, select Row Legend, and change the column settings.