For example, the name column of Big Class.jmp automatically sets the color gradient of the name based on the value of the height columnIt is required to be done in script.
Thanks!
Here is the only way I know how to do it
Names Default To Here( 1 ); dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); a = {1, 3, 5}; b = {2, 4, 6}; :height << color cells( {{"Red", a}, {"blue", b}} ); theScript = Char( :height << get script ); theScript = Substr( theScript, Contains( theScript, "Color Cells" ) ); theScript = ":Name<<" || Substr( theScript, 1, Contains( theScript, "Set Value" ) - 3 ); Eval( Parse( theScript ) );
Thank Jim!
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); m= 4 ;Column(m)<<set property("Color Gradient",{"Green to White to Red",Range({col min(Column(m)),col max(Column(m)),col mean(Column(m))})})<<Color Cell by Value; //?? theScript = Char( :height << get script ); theScript = Substr( theScript, Contains( theScript, "Color Cells" ) ); theScript = ":Name<<" || Substr( theScript, 1, Contains( theScript, "Set Value" ) - 3 ); Eval( Parse( theScript ) );
I do not have a solution for a gradient color pattern.
How do I get the fill color of a cell using JSL?