Hallo @hcarr01 ,
Ich bin mir nicht ganz sicher, was Sie tun wollen, aber ich glaube, ich verstehe. Dies ist eine Möglichkeit, dies mithilfe des folgenden JSL-Codes zu tun – Sie können sehen, wie es in der Datei Big Class.jmp gemacht wird. Hier habe ich mich einfach für die Farbe :age <=14 Rot und >=15 Grün entschieden.
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, :Alter< <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
Im Diagramm-Generator erstelle ich eine Maßnahme aus der folgenden Erfassung:

Sobald die neue Messung erstellt ist, zum Beispiel Transformation[B] = A - B, füge ich sie dem Diagramm hinzu, wie im folgenden Screenshot:

Ist es möglich, die Farbe der Transformation[B] -Maßnahme basierend auf den Werten zu ändern?
Ich habe es mit dem folgenden Skript versucht, aber es passiert nichts, im Diagramm wird keine Farbe angezeigt!
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 ) )
)}
)
)
);