I want the scripted row states to stay on the IR chart and clear the row states in the Data Table once the chart has been closed. However, Clear Row States at the end of the script clears the row states on the created IR chart:
Data Table( "XYZ" ) << Clear Row States;
df = Current Data Table() << Data Filter(
Location( {295, 205} ),
Add Filter( columns( :Column A ), Where( :Column A >= 2 & :Column A <= 2 ) )
) << exclude;
Current Data Table() << Clear Select;
df << close;
df = Current Data Table() << Data Filter(
Add Filter(
columns( :Name( "Column B" ) ),
Where(
:Name( "Column B" ) >= 0 & :Name( "Column B" ) <= 50
)
),
)<< hide << exclude;
Current Data Table()<< Clear Select;
df << close;
Current Data Table() << Color by Column(
Column A,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
);
Control Chart(
Sample Label( :Column A ),
Group Size( 1 ),
KSigma( 3 ),
Connect Through Missing( 0 ),
Chart Col(
:Column B,
Individual Measurement( Connect Points( 0 ) ),
Moving Range
)
);
Data Table( "XYZ" ) << Clear Row States;