Re: 콤보 상자를 사용하여 범례의 특정 열을 건너뛰려면 어떻게 해야 합니까?예제 스크립트 끝에 )를 놓쳤습니다. 삽입 메뉴의 태그도 사용하여 코드를 붙여넣으세요. 다음과 같이 표시됩니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Animals.jmp", invisible);;
legend_list = {"subject","season"};
gb_default = Expr(
Graph Builder(
Size( 544, 356 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Fit to Window( "Off" ),
Variables( X( :species ), Y( :miles ), Color( :subject ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
SendToReport( Dispatch( {}, "400", LegendBox, {Orientation( "Horizontal" ), Sides( "Left" )} ) )
)
);
gb_change = Expr(
Graph Builder(
Size( 544, 356 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Fit to Window( "Off" ),
Variables( X( :species ), Y( :miles ), Color( Column( dt, ycol ) ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
SendToReport( Dispatch( {}, "400", LegendBox, {Orientation( "Horizontal" ), Sides( "Left" )} ) )
)
);
nw = New Window( "Animals Monitoring ",
gb = gb_default;
lbcontent = Lineup Box( N Col( 10 ),
Spacer Box( Size( 1, 0 ) ),
Text Box( "Color: ", <<SET font="" size=""></SET>내가 말할 수 있는 한, 당신은 코드가 작동합니다...그래서 당신의 질문은 정확히 무엇입니까?

Re: 콤보 상자를 사용하여 범례의 특정 열을 건너뛰려면 어떻게 해야 합니까?열 전환기를 사용하는 것은 어떻습니까?
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Animals.jmp", invisible);;
legend_list = {"subject","season"};
Graph Builder(
Size( 544, 356 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Fit to Window( "Off" ),
Variables( X( :species ), Y( :miles ), Color( :subject ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
Column Switcher( :subject, legend_list )
);콤보 상자를 사용하여 범례의 특정 열을 건너뛰려면 어떻게 해야 합니까?안녕,
콤보 상자의 특정 열만 범례로 표시하려고 하는데 현재 가지고 있는 코드는 열을 하나씩 가져옵니다. 특정 열을 건너뛸 수 있는 방법이 있습니까?
예를 들어, 이 경우 범례 목록에 :subject & :season 만 있으면 됩니다. 내 코드는 다음과 같습니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Animals.jmp", invisible );
legend_list = {"subject", "season"};
gb_default = Expr(
Graph Builder(
Size( 544, 356 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Fit to Window( "Off" ),
Variables( X( :species ), Y( :miles ), Color( :subject ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
SendToReport( Dispatch( {}, "400", LegendBox, {Orientation( "Horizontal" ), Sides( "Left" )} ) )
)
);
gb_change = Expr(
Graph Builder(
Size( 544, 356 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Fit to Window( "Off" ),
Variables( X( :species ), Y( :miles ), Color( Column( dt, ycol ) ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
SendToReport( Dispatch( {}, "400", LegendBox, {Orientation( "Horizontal" ), Sides( "Left" )} ) )
)
);
nw = New Window( "Animals Monitoring ",
gb = gb_default;
lbcontent = Lineup Box( N Col( 10 ),
Spacer Box( Size( 1, 0 ) ),
Text Box( "Color: ", <<SET font="" size=""></SET>
미리 도움을 주셔서 감사합니다.
제도법스크립팅윈도우Re: 콤보 상자를 사용하여 범례의 특정 열을 건너뛰려면 어떻게 해야 합니까?두 개의 열 스위처가 나에게 꽤 좋아 보입니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Animals.jmp", invisible);;
legend_list = {"subject","season"};
Graph Builder(
Size( 544, 356 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Fit to Window( "Off" ),
Variables( X( :species ), Y( :miles ), Color( :subject ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
Column Switcher( :subject, legend_list, Title( "Column Switcher Legend" ) ),
Column Switcher( :species, {:species, :season}, Title( "Column Switcher X" ) )
);이 예에서는 동일한 변수 Season을 사용하기 때문에 일부 충돌이 발생하지만 오류 메시지와 함께 정상적으로 처리되며 실제 데이터 세트에서는 발생하지 않을 것입니다.

Re: 콤보 상자를 사용하여 범례의 특정 열을 건너뛰려면 어떻게 해야 합니까?안녕하세요 Pauldeen, 입력해 주셔서 감사합니다.
내 코드는 작동하지만 콤보 상자에서 시즌을 클릭해도 범례가 변경되지 않습니다.
지금 내가 가진 두 가지 콤보 옵션 -
종 클릭 - 종을 범례로 표시합니다.
Click Season - 주제를 범례로 보여줍니다.
반면 종을 클릭하면 종을 전설로 표시하고 시즌과 동일하게 표시합니다. 명확히하는 희망. 감사!

Re: 콤보 상자를 사용하여 범례의 특정 열을 건너뛰려면 어떻게 해야 합니까?열 전환기를 사용해 보았다고 언급해야 했지만 도구에 다른 콤보 상자도 포함할 예정입니다.
하나의 콤보 상자 - x축 변경용
하나의 콤보 상자 - 범례/색상 변경용
열 스위처는 저에게 계속 반복되기 때문에 제대로 작동하지 않습니다.
