Currently working with AG-grid library and react to render data in a table. Here is a simple example of what I'm trying to do:
Soccer Player
player1
player2
player3
In the above column I want to change the color of the column based on the number of goals the player has scored. In AG-Grid I can't find a way to do this. AG-Grid allows you to define Cell Styling Rules, but as far as I can tell the rules are dependent on the value in that cell. In the above example a Player Name cell might be highlighted green if they have scored 10 or fewer goals, blue if they have scored 20 or fewer goals, etc.
Does anyone have any ideas on how to do this, or could recommend another library that might have this functionality?