Here is a simple example.

I developed it interactively by using the Customize Graph designer dialog box available by right clicking on the graph and selecting "Customize".

Once I developed the code, using the Text Template, I then had JMP generate the complete JSL, see below.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
Bivariate(
Y( :height ),
X( :weight ),
Fit Line( {Line Color( {212, 73, 88} )} ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Add Graphics Script(
4,
Description( "" ),
Text(
Center Justified,
{75, 67},
"R2 = " || Char( Round( (Current Report()[Number Col Box( 1 )] << get)[1], 5 ) )
)
)}
)
)
);
Jim