facets icon indicating copy to clipboard operation
facets copied to clipboard

How to assign colorby in ascending order (by categorical values) instead of by amount of datapoints per categorical value?

Open dantp-ai opened this issue 7 years ago • 3 comments

dantp-ai avatar Jan 17 '19 14:01 dantp-ai

Can you give an example of the type of color-by encoding you were hoping to accomplish?

jameswex avatar Jan 17 '19 14:01 jameswex

I have a categorical variable with 4 values: 1,2,3, null where 1=critical, 3=low. I would like to have a color-by encoding from red to green starting from 1 (red). null should be gray. At the moment the color of any value of the categorical variable is solely determined by the number of datapoints which have that value.

dantp-ai avatar Jan 17 '19 22:01 dantp-ai

Currently that type of custom color setting isn't possible in the API (although perhaps there is a way to hack it through some JS that finds the color setter inside of dive and manually changes it and forces a dive redraw).

Marking this as a feature request.

jameswex avatar Jan 18 '19 16:01 jameswex