# Set Colors (under certain condition if possible) onto Data Table rows

**URL:** https://discuss.elastic.co/t/set-colors-under-certain-condition-if-possible-onto-data-table-rows/272709
**Category:** Kibana
**Tags:** vega
**Created:** [May 11, 2021, 2:34pm UTC](https://discuss.elastic.co/t/set-colors-under-certain-condition-if-possible-onto-data-table-rows/272709 "2021-05-11T14:34:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dzious](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dzious](https://discuss.elastic.co/u/Dzious)
#### Post date: [May 11, 2021, 2:34pm UTC](https://discuss.elastic.co/t/set-colors-under-certain-condition-if-possible-onto-data-table-rows/272709/1 "2021-05-11T14:34:32Z")

</div>

Hi everyone.

I have a little question about Data table visualisation.  
Is there a way to set colors to rows and not leave them white ?  
Even better is there a way to have odd row from one color and pair rows an other color ?  
Last question is there a way to set a color only to new rows on each update ?

If you don't see what i mean, you can check [this post](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/5)  
It gives a good example of what i'm trying to achieve in stage two unfortunately there is no response to his question.

Any help for any of these question would be appreciate.  
Thanks by advance !

Out Of Context :  
I also want to say thank you for the new user of the month badge. this one is really appreciate.

---

<div class="post-metadata">

### Author: ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)
#### Post date: [May 11, 2021, 11:15pm UTC](https://discuss.elastic.co/t/set-colors-under-certain-condition-if-possible-onto-data-table-rows/272709/2 "2021-05-11T23:15:23Z")

</div>

You can color the value, not the entire row. Or try using vega.  
Discussions:

> [@Color in a field in the dashboard](https://discuss.elastic.co/t/color-in-a-field-in-the-dashboard/245218):
>
> Hello, I would like to know if its possible to display colored fields based on the message. For ex : If a server down is down, I would get the status as UP or DOWN on the dashboard. I would like to modify it as If the server status is DOWN, it should display a red bubble and a green bubble if its UP Is it possible to do it and if yes, could you please share some information on this ?

Also can do it with painless

---

<div class="post-metadata">

### Author: ![Dzious](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dzious](https://discuss.elastic.co/u/Dzious)
#### Post date: [May 12, 2021, 1:17pm UTC](https://discuss.elastic.co/t/set-colors-under-certain-condition-if-possible-onto-data-table-rows/272709/3 "2021-05-12T13:17:27Z")

</div>

Thanks for your response @AClerk

I've been able to make [**this vega visualisation**](https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATONABONHJnaT0AQQAETJBBpRtZRWwY44s3UkXbYNzNrgAPJAhwAbOJWkgA7jSy9GgAzAAMYTLwNGRYaAIRMjhIsrI04mTxMrJImCioANqg4m5waCB5TF6+xEgeDApoRSAAAmoICnnuaACMMhBwiqSK5QDKg8PaPSAAvlKgbTQdEF04aABM-RODY9u267Pzre2dbmuoIVtDO+jj17YhhwsnK2doACxXw7v32u9PxyWp26qAEXxuIDukwEAMWy1WaAAbOCRrc9tpEbCXgjUAB2FE-Sa4rFA14ggAcBLRv3JJPhb1QAE4qZD0Yy6cDzpEQAN7oTBtowrMALozYX9GIlDwQJrFUrlUx+AD6UDYHjYIxktXqZXQiksvgkspAcFI4kwMr1cCgmFQUA8hgA1r5zDlMLqQIqVWqNdoALwB7QAcn1siD2gA-MG-DA6HBw6hg6GgyKxf0oHVGoU5R1ygBPaCZ3yYPMWcoO8RwGy+WRsZDpNCgN35CpIKplGQAMxocA8snKcM5h09SAyHuisUwAJKufQqvVmoqpY9GrSUprdaQDdQTdyLcq1S7Pb7A+xbzmI7HjZ5sEQHoz7rIGrz6yFMzTIGQikdluaM49iq+J2pgINezblAeZQXiWZZWjavhwOIqryNeiHuqioB5tehbVOgBYZoeIDdr2-boIOZJrP0GpTug8jQIha6ZBeE5xDuIDag08RhBezjXhxurhNxMjOAcbH8WgQlETQHgeHxdScVa-bvjIrq5LqoDdjJ2GSnUCpsMq84arM75zKAMEeu6zhTl2IFgXuel+MOiHIepJrmjcoC8WxxEnugvEyGwnadgMNHrAIF5Yd5x6kSAWEBUFIXXj5MUsdZn4MB4NFhJQ4UXppsnZhUnTlKq5qKPomAABRBjGcZBlI2hugwCCUPlACU2gAHx2BImDlSs1VVEgUCOvVjW5M1rXSR4bU1PJHq1e6ALiegQ0jSKMh1JKck6uWcCdlOF56AMFauStn6BLI1TQS4NEadF5RNS15EIiZplLrBRVWUBtlseBer6U5SFsChbFoR5IBefdJHlP5ICBcFcA0T0EQRUlD14YaCVI+jMPoKlvgIBlWU5cpUlaYV7orCVvX9VVNWxu6Y1PVNMkdd1pV9RVg0eMNo0NSz7Vzbt6CLVBRznWtzofltZAaKA51eAdw7Hb26RnfN5QIJd10yJZd1SXjcgTS1vLfG9opAA)

Unfortunately i'm stuck with signals. I have a signal which detects when i click on a recangle and change its value. My problem is that this value is not specific to each one of the row.  
Is there a way to make it dependant to the row ?  
Thanks by advance

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 9, 2021, 1:17pm UTC](https://discuss.elastic.co/t/set-colors-under-certain-condition-if-possible-onto-data-table-rows/272709/4 "2021-06-09T13:17:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
