my table looks like so :
I have been trying to update the table_cell_highlighting.js in the dashboard example app so that it only highlights the percentage cell for status=200
please point me in the right direction - thx
status count percent
200 895 95.927117
404 14 1.500536
304 12 1.286174
303 12 1.286174
thanks @gcusello that was where i looked first but it applies to all fields in the column.
My requirement is purely to highlight the percentage cell for status 200
thx
Hi @Skins ,
in the above colour definition, you can configure to highlight (e.g. in green) only the cells with value=200, to do this you have to choose the last option "values".
Ciao.
Giuseppe
Sorry no thats not the requirement..
only the row where status is 200 i only want to highlight the percentage cell and then change the colour depending on the percentage value
status | count | percentage |
200 | 3245 | 98 (only highlight this cell) |
404 | 34 | 1 |
503 | 34 | 1 |
>75% = green
>50 <74 = amber
>50 = red
Hi @Skins ,
this solution uses a Js that you can modify, but it was done to solve a requirement that now is present in the default feature:
if you go in the panel Edit (the pensil in the panle, in the top of the column, you can define the coours of the ces of the column.
Ciao.
Giuseppe