Hi JMP Community,
I wrote a simple script to assign a color gradient to continuous-value columns based on the 0.05 quantile of columns values.
Names Default To Here(1);
dt = current data table ();
scol = dt << Get Selected Columns ();
For (i = 1, i <= N items (scol), i++,
column (dt, scol[i]) << Format("Fixed Dec", 12, 3);
low_mark = Col Quantile(column (dt, scol[i]), 0.05);
high_mark = Col Quantile(column (dt, scol[i]), 0.95);
if(abs(low_mark) > high_mark, bound = -low_mark, bound = high_mark);
range_list = {-bound, bound, 0};
column (dt, scol[i]) << Set Property ("Color Gradient",
{"Blue White Red", Range (Eval list (range_list)),
Color cell by value (1)})
);
While it works in assigning the correct colors, JMP returns an error when I subsequently edit the gradient manually (see below):

Hence, I need a method to pass the gradient range values without triggering an error upon subsequent manual edits.
Thank you.
Best,
TS
Thierry R. Sornasse