# Visualization for status field

**URL:** https://discuss.elastic.co/t/visualization-for-status-field/287140
**Category:** Kibana
**Created:** [October 19, 2021, 10:46pm UTC](https://discuss.elastic.co/t/visualization-for-status-field/287140 "2021-10-19T22:46:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vishal\_bisa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_bisa/32/96094_2.png) [@vishal\_bisa](https://discuss.elastic.co/u/vishal_bisa)
#### Post date: [October 19, 2021, 10:46pm UTC](https://discuss.elastic.co/t/visualization-for-status-field/287140/1 "2021-10-19T22:46:48Z")

</div>

Hi Team,

I have a below requirement to show the status visualization for below data  
let's say that for the last 24 hours i have a field for incidents and the latest value shows whether that service is down  
incidents.servicekey="core service"  
means that core service is down  
and if **i dont have any data or no results found** it means that the service is up and running  
below is what i have tried but for metric the color code is not working even it shows 0 results.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/e/beba2a6e338f1f98e32315551e03bac47aa19291.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/7/475ba540233260243411fc1c35fcff783bd80262.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/3/33b004219cff6ff4ffac98397ca20c8ac12e80ad.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6e37ba7784d72859169f311eb128c3f0861bb523.png)

Version 7.14.1  
Appreciate for the help

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [October 20, 2021, 8:14am UTC](https://discuss.elastic.co/t/visualization-for-status-field/287140/2 "2021-10-20T08:14:17Z")

</div>

Hi there, what if you try this configuration?

 ![Screenshot 2021-10-20 at 10.13.59](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e41a60ed21e9c7c19caac2fab7335f401bd3b029.png)

---

<div class="post-metadata">

### Author: ![vishal\_bisa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_bisa/32/96094_2.png) [@vishal\_bisa](https://discuss.elastic.co/u/vishal_bisa)
#### Post date: [October 20, 2021, 8:33am UTC](https://discuss.elastic.co/t/visualization-for-status-field/287140/3 "2021-10-20T08:33:23Z")

</div>

Thanks a lot @Marta_Bondyra it worked 👍  
Can you please confirm if we want to have similar panels, inner color is needs to be checked ? kind of surprised to see the expected result just by changing a config 😅  
Can this similar requirement be done in pie chart or donut ?

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [October 20, 2021, 8:52am UTC](https://discuss.elastic.co/t/visualization-for-status-field/287140/4 "2021-10-20T08:52:28Z")

</div>

Happy to hear it worked! It actually depends on visualization type, I don't think it will work in pie chart or donut - in this case you will get the screen as below for no results. I don't think you can work around it.

![Screenshot 2021-10-20 at 10.50.22](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df1ab7a321fe3cd84206c94c2b5ba4a7fe3ced94.png)

---

<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: [November 17, 2021, 8:52am UTC](https://discuss.elastic.co/t/visualization-for-status-field/287140/5 "2021-11-17T08:52:55Z")

</div>

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