안녕하세요 @hcarr01 님,
당신이 무엇을 하고 싶어하는지 정확히는 모르겠지만, 이해는 할 것 같아요. 이는 아래 JSL 코드를 사용하여 이를 수행하는 한 가지 방법입니다. Big Class.jmp 파일에서 어떻게 수행되는지 확인할 수 있습니다. 여기서는 :age <=14 빨간색 및 >=15 녹색 색상을 선택했습니다.
Names Default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
For(i=1, i<=NRows(), i++,
If(
:age[i]<=14,
:age<<COLOR cells="">=15, :나이< <COLOR cells=""></COLOR></COLOR>
Another option would be to set a Spec Limit for the column and use Analyze > Quality and Process > Manage Limits and then use the red hot-button to color out of spec cells. The default here is blue if > USL and red if < LSL, and I don't think you can edit this in the preferences.
One of these options should get you to where you want to go, I think. If you want to color the row state, then you could also try the Color by Column() command. See the Scripting Index example:
<CODE class=" language-jsl">Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Color by Column( :Age );
Wait( 2 );
dt << Color Rows by Row State;
The last command will also color the rows according to how they've been assigned in Color by Column.
Definitely one of these options should get you what you're after.
Good luck!,
DS
차트 빌더에서 아래 캡처를 통해 측정값을 생성합니다.

예를 들어 변형[B] = A - B와 같이 새로운 측정값이 생성되면 아래 스크린샷과 같이 그래프 에 추가합니다 .

변형[B] 측정값에 따라 색상을 변경할 수 있나요?
다음 스크립트를 시도했지만 아무 일도 일어나지 않고 그래프에 색상이 표시되지 않습니다!
Graph Builder(
Transform Column(
"indicateurs (A-B)",
Formula( Col Sum( :A ) - Col Sum( :B ) )
),
Size( 534, 450 ),
Show Control Panel( 0 ),
If( indicateurs (A-B) < 0,
Title Fill Color( "Light Red" ),
Title Frame Color( "Light Red" ),
Level Fill Color( {255, 193, 202} ),
Level Frame Color( "Light Red" ),
Level Spacing Color( "Light Red" ),
,
Title Fill Color( "Light Green" ),
Title Frame Color( "Light Green" ),
Level Fill Color( {190, 255, 202} ),
Level Frame Color( "Light Green" ),
Level Spacing Color( "Light Green" ),
),
Variables(
X( :Mois ),
Y( :A ),
Y( :B, Position( 1 ) ),
Group X( :"indicateurs (A-B)"n )
),
Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 5 ), Label( "Label by Value" ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
5,
Properties( 0, {Fill Color( 51 )}, Item ID( "A", 1 ) ),
Properties( 1, {Fill Color( 21 )}, Item ID( "B", 1 ) )
)}
)
)
);