你好朋友,
有沒有辦法在列切換器框中獲取用戶選擇的值?
列切換器框代碼在下面的JSL中是高位的。我還在此消息中添加了一個圖像,以便可視化問題。
M2V1_dt << Bivariate(
Y( :VALUE ),
X( :Time_1 ),
Fit Where(
:SITE == "A",
Fit Spline( 0.1, Standardized, {Line Color( {213, 72, 87} )} )
),
Fit Where(
:SITE == "B",
Fit Spline( 0.1, Standardized, {Line Color( {64, 111, 223} )} )
),
<STRONG> Column Switcher( VALUE, {VALUE, VAL2} ),
Column Switcher( Time_1, {Time_1, Time_2} ),</STRONG>
SendToReport(
Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( 18, Dashed, "Dark Blue", "+0.5S", 2 ),
Add Ref Line( 9, Dashed, "Dark Blue", "-0.5S", 2 )}
),
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 533, 205 ), Row Legend(
SITE,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch(
{},
"Smoothing Spline Fit",
OutlineBox,
{Close( 1 ), Set Title( "" )}
),
Dispatch(
{},
"Smoothing Spline Fit",
OutlineBox,
{Close( 1 ), Set Title( "" )}
)
)
);謝謝,
RB。
您可以查詢列切換器的所有消息都記錄在腳本索引中。
幫助==>腳本索引==>列切換器
以下是腳本索引中的示例,說明了獲取當前消息
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Car Poll.jmp" );
obj = dt <<
Contingency( Y( :size ), X( :marital status ) );
ColumnSwitcherObject = obj <<
Column Switcher(
:marital status,
{:sex, :country, :marital status}
);
ColumnSwitcherObject << Set Current( "country" );
ColumnSwitcherObject << Get Current/*country*/ ;