reactablefmtr icon indicating copy to clipboard operation
reactablefmtr copied to clipboard

Domain of color_scales?

Open daranzolin opened this issue 2 years ago • 1 comments

Really enjoying reactablefmtr! Quick question: I am trying to apply color scales to a few columns in my table, but I need to specify the minimum and maximum range of values, instead of the minimum and maximum of whats in the table. In D3/gtExtras parlance, this is called the 'domain', e.g. gtExtras::gt_color_rows(..., domain = c(0, 1)). Is there an analogous argument in reactablefmtr? How would I do this?

daranzolin avatar Mar 16 '23 22:03 daranzolin

Bumping this issue. I've been used data_bars() and the color scaling is not matching the min/max of values specified, rather it seems to be applying the color gradient according to the min/max of the actual data in the table. This is undesireable as this makes it difficult to standardize color scaling across datasets. image

rprops avatar Mar 20 '23 07:03 rprops