Hi
I am looking to change the permanently the format for the:
1) Control limits to a red dotted line
2) Spec limits to a red solid line
I can change the color within Platforms, but not the line type, I don’t want to keep on going into Customization to do this, any ideas
If it is a script issue then please tell me how I can make it permanent, still a novice with this
Thanks in advance
Start by plotting your control chart and customising the line formats.
(I used the Big Class example data from the Sample Data in JMP.)
Then capture the JSL script for this. From the Control Chart Builder red triangle menu > Save script > To Script Window:
Control Chart Builder(
Size( 508, 438 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :height ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg( Line Seg( 3 ), {Line Style( "Dotted" )} ),
DispatchSeg( Line Seg( 4 ), {Line Style( "Dotted" )} )}
)
)
If you run this script it will recreate the exact same control chart with your customisations (dotted lines in this case).
Now we can customise the script so that you can specify a different Y variable.
Add this snippet at the start that will bring up a Column dialog:
//This bit creates a new object called col_dlg using the Column Dialog function
col_dlg = Column Dialog(
_yVar = ColList( "Y, Variable" )
);
Then substitute the Y, variable in your control chart script with another little bit of JSL that references the Y, variable from the col_dlg:
col_dlg["_yVar"]
The final script should look like this:
//This version generalises to any (continuous) column in the current data table
//This is done by using the Column Dialog function
//And then substituting in col_dlg"_yVar" for the column name
//This bit creates a new object called col_dlg using the Column Dialog function
col_dlg = Column Dialog(
_yVar = ColList( "Y, Variable" )
);
//This bit is as before but substituting in col_dlg"_yVar"
Control Chart Builder(
Show Capability( 0 ),
Variables( Y( col_dlg["_yVar"] ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg( Line Seg( 3 ), {Line Style( "Dotted" )} ),
DispatchSeg( Line Seg( 4 ), {Line Style( "Dotted" )} )}
)
)
);
I hope this helps.
Phil