Box plot show Different Spec line in a graph by JSLAs the document 《P1 CAN.jmp》, the graph "FAI 19-Flange" box plot is created by 《Direct create Boxplot.jsl》, this method does not need to stack data table, but the Spec line is the same Horizontal line. Now, I want to show it as 《Box Plot.jpg》by Different Spec line, and this method was created by manual operation, it needs to stack data table, how to correct 《Direct create Boxplot.jsl》can auto create?

JMP PRO 16Re: Box plot show Different Spec line in a graph by JSLIs this what you want

names default to here(1);
dt = current data table();
colNamesX = dt << get column names(string);
for(i=nitems(colNamesX),i>=1,i--,
if(contains(colNamesX[i],"Flange")==0,
remove from(colNamesX,i,1),
word(4,colNamesX[i],"-.")!="",
remove from(colNamesX,i,1)
)
);
colNameColor = column(1)<<GET name=""></GET>