Check the scripting index. Here's an example.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Color or Mark by Column( :Age );
Just substitute in your phase column.
If you save the CC script to your data table, you can add this to the end of the script, so it will change colors when you run the CC script.
Now, if you wanted to have a little more fun with it, you could open the control chart, then color or mark by column. Then when when the CCB window is closed you could clear the row states.
But that would just be showing off.
Note, that If this script is in a data table, you wouldn't need the open, just maybe define the current table as dt.
dt=open("$SAMPLE_DATA/Big Class.JMP");
//dt=current data table():
ccobj = dt << Control Chart Builder(
Variables( Y( :Weight ) )
);
dt << Color or Mark by Column( :Age );
ccobj << On Close(
dt<<clear row states;
);
JMP Systems Engineer, Health and Life Sciences (Pharma)