You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just wondering is it possible to colour code a column based on the value of a different column. I have attached a screen shot picture of a table I have produced below. As can be seen I have been able to colour code the numeric column for each game week, but not able to get the same colour background for the column with the team logos which I would like to test to see if it looks better.
Is it possible to achieve this effect?
The code I am using for the numeric column is just the basic gtextras function:
Howdy! It's not currently possible right now - there are some possible hacks but nothing first class in gt or gtExtras to color the entire background of a column by another column. You could use something like gt_img_circle():
Hi -
I was just wondering is it possible to colour code a column based on the value of a different column. I have attached a screen shot picture of a table I have produced below. As can be seen I have been able to colour code the numeric column for each game week, but not able to get the same colour background for the column with the team logos which I would like to test to see if it looks better.
Is it possible to achieve this effect?
The code I am using for the numeric column is just the basic gtextras function:
gt_color_rows(columns = c(3,5,7,9),
palette = c("#7d42be",
"#ffffff",
"#37af4a"),
domain = c(0 - qb_palette_limit,
0,
qb_palette_limit))
I have tried playing around with the domain part for the column 2,3,6,8 to be coded against columns 3,5,7,9 but can't get it to work at all!
The text was updated successfully, but these errors were encountered: