# Conditional color coding of entire row in Data Tables

**URL:** https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063
**Category:** Kibana
**Created:** [June 24, 2019, 7:07am UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063 "2019-06-24T07:07:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bpallagani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bpallagani/32/48620_2.png) [@bpallagani](https://discuss.elastic.co/u/bpallagani)
#### Post date: [June 24, 2019, 7:07am UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/1 "2019-06-24T07:07:11Z")

</div>

Hi,

I want to change the color of entire row in a Data Table in Kibana depending on the value of one field (cell) in that row.  
I am able to change the particular field/cell from index pattern. But I want to know if it  
is possible to change the color of the entire row of that cell ??

Thanks

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [June 24, 2019, 2:27pm UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/2 "2019-06-24T14:27:04Z")

</div>

As in, you'd like to change the color of the text in the table?

If I got that right, no, Kibana doesn't currently offer any way to customize the appearance of text in a data table dyamically, using the value or otherwise.

Other option is you can use field format and assign the color you want for a particular field under management.

cheers

---

<div class="post-metadata">

### Author: ![bpallagani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bpallagani/32/48620_2.png) [@bpallagani](https://discuss.elastic.co/u/bpallagani)
#### Post date: [June 26, 2019, 6:24am UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/3 "2019-06-26T06:24:38Z")

</div>

Thanks for the reply Rashmi.  
So, I understand that we cannot change the color of entire row using the value of any cell in that row.  
But we can change color of any particular cell on its value. It can be done by using filed format or index pattern.  
Is my understanding correct?

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [June 27, 2019, 2:12pm UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/4 "2019-06-27T14:12:32Z")

</div>

For numeric values you can use this. The Metric visualization has this feature now. In this case I've set ranges and colors are applied to the values;

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/95ffdbd445ab38b5812ae1d4a0aacc7b9fa6b15b.png)

But I think you might be able to use conditional formatting for strings too. I'll check on that.

Here's an example where I set the conditional formatting of my `@tags` field so that `success` is green, and `info` is blue;

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0f033fefca0030e3757a49782a6bcd5d6e5c57d7.png)

hope this helps, let me know...  
Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![bpallagani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bpallagani/32/48620_2.png) [@bpallagani](https://discuss.elastic.co/u/bpallagani)
#### Post date: [June 28, 2019, 6:14am UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/5 "2019-06-28T06:14:41Z")

</div>

This will change the color of the particular cell in the table.  
But is it possible to change color of all cells in the row where the cell to which we are applying condition is present??  
For Example;

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/3/13ce977eb9e922fa8063996afcf8bf8d27ac0724.png)

Here, I am changing the color of complete row depending on Dept.  
I am aware of changing the color of single string in kibana, but Is it possible to make similar change on complete row of Data table in Kibana?

---

<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: [July 26, 2019, 6:14am UTC](https://discuss.elastic.co/t/conditional-color-coding-of-entire-row-in-data-tables/187063/6 "2019-07-26T06:14:47Z")

</div>

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