If you set the column property "Value Color" for BEAM_L1 to the colors you want, and then startup Chart Builder, the colors used when overlaying the chart by BEAM_L1 will remain even when filtering.
JMP 13.2.1
Names Default To Here( 1 );
dt = New Table( "class",
Add Rows( 40 ),
New Column( "Age",
Numeric,
"Ordinal",
Format( "Fixed Dec", 5, 0 ),
Set Property(
"Value Colors",
{12 = -13977687, 13 = -3780931, 14 = -4222943, 15 = -13596966, 16 = -2211217, 17 =
-10562780}
),
Set Values(
[12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14,
14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 17, 17, 17]
)
),
New Column( "Height",
Numeric,
"Continuous",
Format( "Fixed Dec", 5, 0 ),
Set Values(
[59, 61, 55, 66, 52, 60, 61, 51, 60, 61, 56, 65, 63, 58, 59, 61, 62, 65, 63, 62, 63,
64, 65, 64, 68, 64, 69, 62, 64, 67, 65, 66, 62, 66, 65, 60, 68, 62, 68, 70]
)
)
);
dt << Graph Builder(
Variables( X( :age ), Y( :height ), Overlay( :age ) ),
Elements( Box Plot( X, Y, Legend( 6 ) ) ),
Local Data Filter(
Add Filter(
columns( :age ),
Where( :age == {12, 13, 14, 15} ),
Display( :age, Size( 160, 90 ), List Display )
)
)
);
Jim