Subscribe Bookmark RSS Feed

Add labeled ref line to EWMA control Chart

I'm trying to script a control chart and add some reference lines and label them on the right side like LCL and UCL are labeled. Below is what I have and the lines are drawn but there are no labels to the right of the plot. Any ideas?
cc2 = Control Chart(
Sample Size( 5 ),
KSigma( 3 ),
Chart Col( :col, EWMA ),
Where( :blah == var_blah ),
SendToReport(
Dispatch(
{"EWMA of Key Parameter"},
"2",
ScaleBox,
{Scale( Linear ), Format( "Fixed Dec", 1 ),
Min( min_num ),Max(max_num),
Inc( (inc_num ),
//Minor Ticks( 1 ),
Add Ref Line( LL, Dashed, Red,"LSL" ),
Add Ref Line( UL, Dashed, Red,"USL" )}
),
Dispatch(
{"EWMA of Key Parameter"},
"Control Charts",
FrameBox,
Frame Size( 64, 162 )
)
)
3 REPLIES
mpb

Super User

Joined:

Jun 23, 2011

Here is some code that does work which I got by saving the script after manually adding the reference lines. Notice that the reference line labels are on the left axis.
What you posted doesn't work for me. I get the plots and reference line, but no label on the ref line. Could this be a version issue? My company is still running JMP 7.

Message was edited by: Justin
mpb

Super User

Joined:

Jun 23, 2011

It doesn't work for me under JMP 7. When I bring up axis properties I don't see an option to label the reference lines manually either. Must be this is a JMP 8 improvement.