great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

Add ability for `data_color` to color cells row-wise instead of column-wise

Open ryantaylor406 opened this issue 9 months ago • 0 comments

Proposal

Currently, the data_color function can only colorize data based on column values. On the R GT package, they have a direction argument:

direction Color computation direction singl-kw:[column|row] // default: "column" Should the color computations be performed column-wise or row-wise? By default this is set with the "column" keyword and colors will be applied down columns. The alternative option with the "row" keyword ensures that the color mapping works across rows.

It would be very useful to have this functionality to color cells based on row values.

ryantaylor406 avatar Feb 05 '25 20:02 ryantaylor406