In my script I am trying to add a reference line to each control chart. "Graph_line" is a list of values that I want to use as the reference lines. There are 63 items in Graph_lines which corresponds to the 63 different UNIT_MODELs that I am charting. I tried to use a for loop and I realize that this is somewhat primitive but my overall understanding of jmp right now is still low. Pleas help! Thanks
Control Chart(
Group Size( 1 ),
KSigma( 3 ),
Chart Col( :Name( "Sum(BIN_COUNT, 1)" ), Individual Measurement ),
by( :UNIT_MODEL),
For(i = 1, i <= n items(Graph_line), i++,
ref = Graph_line[i];
SendToReport(
Dispatch(
{"Individual Measurement of Sum(BIN_COUNT, 1)"},
"2",
ScaleBox,
{Add Ref Line( ref, "Solid", "Dark Blue", "", 2 )}
)
)
)
);