こんにちは@hcarr01 さん
あなたが何をしたいのか正確にはわかりませんが、理解できると思います。これは、以下の JSL コードを使用してこれを行う 1 つの方法です。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 ) )
)}
)
)
);