Jim, thanks for the code, I think I understand. I really appreciate the syntax examples! Now for my case, I will need to generalize it (I will need to build string that has all the bins, which won't be known until run time) ,
I assume __fList__ is just a list of values from the column of interest that you want a particular color. So I assume this expression could get bigger, and my list can be 1000s of items big, and I could have several different color bins in the expression..
I may have time to try this later today, I will let you know how it goes.
The hardest challenge i see is buiilding the expression below for my generalized case, but I will try a hard coded example initially as proof of concept, I may come back to the forum if I get stuck on the expression.
Thanks again!
Chris
Eval(
Substitute(
Expr(
dt:sex << set property( "value colors", {"F" = __fList__, "M" = __mList__} )
),
Expr( __fList__ ), fColorList,
Expr( __mList__ ), mColorList
)
);
Eval(
Substitute(
Expr(
dt:sex << set property( "value colors", {"F" = __fList__, "M" = __mList__} )
),
Expr( __fList__ ), fColorList,
Expr( __mList__ ), mColorList
)
);
// Set the row state colors
dt << Color by Column( :Sex );