# Kibana threshold based color coding

**URL:** <https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977>\
**Category:** Kibana\
**Created:** [September 10, 2017, 4:25pm UTC](https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977 "2017-09-10T16:25:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pri](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@pri](https://discuss.elastic.co/u/pri)\
**Post date:** [September 10, 2017, 4:25pm UTC](https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977/1 "2017-09-10T16:25:11Z")

</div>

Hi,  
Is there a way to dynamically assign a color to, say a bar in a bar chart depending on the value that it represents? To explain further, if the bar represents the percent of questions answered, is it possible to define a conditional color coding as follows: \>=95% - green, \>=80% and \<95% - yellow, \<80% - red when setting up visualization? This seems to be available in the gauge visualization and to certain extent in the data table (through formatting). If this is not available, is there a plan to introduce this feature in the near future releases? Right now this seems to be a huge missing piece that is preventing us from using Kibana for many dashboard use cases that we have.

Also if the color coding is supported, can it be extended to scripted fields? For example:  
achieved = floated - converted  
achieved = 100, green  
achieved \< 100, red

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [September 11, 2017, 2:20pm UTC](https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977/2 "2017-09-11T14:20:43Z")

</div>

It's not possible at the moment, there's an open ticket here [https://github.com/elastic/kibana/issues/4482](https://github.com/elastic/kibana/issues/4482) which you can add your thoughts on.

---

<div class="post-metadata">

**Author:** ![pri](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@pri](https://discuss.elastic.co/u/pri)\
**Post date:** [September 11, 2017, 10:23pm UTC](https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977/3 "2017-09-11T22:23:15Z")

</div>

Thanks for the reply. Is there information available on whether this feature will be part of the upcoming release(s)?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [September 12, 2017, 2:28pm UTC](https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977/4 "2017-09-12T14:28:41Z")

</div>

There are no specific plans as far as I know, all the info would be in that ticket.

---

<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:** [October 10, 2017, 2:28pm UTC](https://discuss.elastic.co/t/kibana-threshold-based-color-coding/99977/5 "2017-10-10T14:28:49Z")

</div>

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