I'm trying to do something similar. First of all, you can see the performance of the Add Pin Annotation by doing it manually, and then look at the script. The Scripting Index is missing UniqueID() argument. Apparently you can put in any number, like UniqueID(1)? My saved script from the graph has UniqueID like "859424637" but any number may work. I will see if they can fix that in JMP15EA. I am using JMP14.2.
Also another note: The Index and Index Row start counting from 0, not 1. So in the Scripting Index example, Index(17) is Leslie, which is Row 18, not Row 17. If you pin annotation on Row 1, Katie, it will show Index( 0 ).
Names Default To Here( 1 );
//This message applies to all display box objects
Open( "$SAMPLE_DATA/Big Class.jmp" );
Bivariate(
Y( :weight ),
X( :height ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 17 ),
Index Row( 17 ),
UniqueId( 1 ), // this is missing in Scripting Guide
Origin( {64.9765625, 142} ),
Offset( {-174, -40} ),
Tag Line,
Font( "Helvetica", 11, "Plain" )
)
)
)
);