Please add the snippet of code "to show the spec limits on the graph (Show as Graph Reference Lines)."
The preference to do this is Show Limits(1).
The script below opend the JMP sample data table Semiconductor Capability.jmp, uses the first 5 continuous variables, get the spec limits then add to the property Show Limits( 1 ). A variability chart of those 5 variables display teh spec limits, however they might be outside of the range of Y axis settings.
Names Default to here(1);
dt = Open("$sample_data/semiconductor capability.jmp");
cvar = (dt << get column names("Continuous", string))[1::5];
//do just 5
for(i=1, i<=nitems(cvar), i++,
ppl = column(dt,cvar[i]) << get properties list;
if(contains(ppl, expr(Spec Limits)),
sl = column(dt, cvar[i]) << get property("Spec Limits");
insert into(sl, { Show Limits( 1 ) });
Eval(EvalExpr(column(dt, cvar[i]) << Set Property("Spec Limits", expr(sl))));
);
);
varchart = dt << Variability Chart( Y( evallist(cvar) ), X( :lot_id, :SITE ) )