I am working on a webapp to monitor occupancy. I wanted to paint a row yellow as a warning when 90% of the max capacity was reached. I have two columns, one for max_capacity and another for current_occupancy.
Am I able to do something like:
style_data_conditional=[
{
'if': {
'filter_query': '{current_occupancy} > {max_people}*0.9',
},
'backgroundColor': '#f8d7da',
'color': '#721c24'
},
]
Thanks in advance!