Hi Veronique!
I wish you an Happy New Year!
Regarding your question, you can use the legend box as described in this workaround : Solved: add Row Legend to Control Chart Builder output? - JMP User Community
The following JSL should give what you expect:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );
// Create the color pattern and legend window
TheLegend = dt << color or mark by column( :Lot_id, make window with legend );
// Create the window with the V List Box in it
NW = New Window( "legend example", myVLB = H List Box( Control Chart Builder(
Size( 716, 456 ),
Show Control Panel( 0 ),
Variables( Y( :NPN1 ) ),
Chart( Position( 1 ) ),
SendToReport(
Dispatch( {}, "NPN1 Limit Summaries", OutlineBox, {Close( 1 )} ),
Dispatch(
{"NPN1 Limit Summaries", "Process Capability Analysis", "Histogram"},
"Process Capability Analysis Histogram",
FrameBox,
{Frame Size( 320, 21 )}
)
)
)));
// Append the legend window to the VLB
myVLB << append( TheLegend );
Hope it will be helpful!
Florence