やあ、
コンボ ボックスに特定の列のみを凡例として表示しようとしていますが、現在のコードでは列を 1 つずつ取得しています。 特定の列をスキップする方法はありますか?
たとえば、この場合、凡例リストには :subject & :season のみが必要です。 これが私のコードです:
名前のデフォルトはここ ( 1 ) です。
dt = Open( "$SAMPLE_DATA/Animals.jmp", 非表示);;
legend_list = {"件名","季節"};
gb_default = Expr(
グラフビルダー(
サイズ( 544, 356 ),
コントロールパネルを表示( 0 ),
Legend Position( "Bottom" ),
ウィンドウに合わせる( "オフ" ),
Variables( X( :species ), Y( :miles ), Color( :subject ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
SendToReport(
急送(
{}、
"400",
レジェンドボックス、
{Orientation( "Horizontal" ), Sides( "Left" )}
)
)
);
);
gb_change = Expr(
グラフビルダー(
サイズ( 544, 356 ),
コントロールパネルを表示( 0 ),
Legend Position( "Bottom" ),
ウィンドウに合わせる( "オフ" ),
Variables( X( :species ), Y( :miles ), Color( Column( dt, ycol ))),
Elements( Points( X, Y, Legend( 14 ) ) ),
SendToReport(
急送(
{}、
"400",
レジェンドボックス、
{Orientation( "Horizontal" ), Sides( "Left" )}
)
)
)
);
nw = New Window( "動物の監視 ",
gb = gb_default;
lbcontent = Lineup Box( N Col( 10 ),
スペーサーボックス( サイズ( 1, 0 ) ),
Text Box( "Color: ", < ycb = コンボ ボックス(
凡例リスト、
<<セット( 1 ),
<<関数の設定(
関数( {}、
ycol = ycb << Get;
gb << 削除;
nw << Prepend( gb = gb_change );
))));
事前にご協力いただきありがとうございます。