For example, the height column of "Big Class. JMP ", select the color gradient specified by ②.
Thanks!
OK, now I see what you want. It takes two steps: (1) specify color gradient and (2) color the cells. This example code illustrates the two steps and the syntax:
Names Default to Here( 1 ); // example data set dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); // add color gradient as a column property :height << Set Property( "Color Gradient", {"Green Yellow Red", Range( {51, 70, 62.55} )} ) << Color Cell by Value;
See Column Properties.
Thank markbailey!
I have tried several methods, but still have no solution.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); dt:height<<Set Property( "Value Colors", {"Female" = 3, "Male" = 5} );Wait(0);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); dt:height<<Set Property( "Value Colors", Color Theme( "White to Blue" ) );Wait(0);
That failure is because you are using the wrong property. The documentation that I cited clearly distinguished between associating colors and gradients:
Specify the gradient and the range and midpoint for Value Gradient:
col << Set Property( "Color Gradient", { "White to Blue", Range( { 18, 60, 25 } ) } );
I still don't understand. That's all I can write.But the table doesn't change at all.