Hey! I’m trying to grab the value of the cell during conditional formatting of a dash data table, is this possible? Looking to set the alpha of a cell based on its value without having a rule for each integer.
@robswc Sadly there’s currently no way to natively use the value of a field in a formula to return a modified value to use on props. We are discussing the feasibility of adding formula support to the table but there’s no specific plans or timeline yet. Maybe it will look something like this:
The best you can do for now with the props is define ranges with the appropriate colors and have each range represented by a conditional style. The more granular, the more gradient-like, but the more costly in terms of cpu / resources when rendering the table.
Using .format() only allows you to apply certain values to a string template. It can be helpful when you have the same logic to apply over many columns / rows / etc. to build conditions / style /etc. but it not otherwise strictly related to the problem you are experiencing.
Hi! I was wondering if there was any update on this. Let’s say I have max_capacity and n_people columns. Can I multiply max_capacity by 0.9 and do a conditional format, so that n_people values that are above that threshold are painted red?
Hello! I am following up to see if there was an update on this. I have a numeric column with mixed formats, dollars and percentages, and I would like to have anything >= 1 be formatted with dollars and anything < 1 be formatted as a percentage. Is there any way to access and format the value based on that logic?