# Dynamic Color mapping by trend

**URL:** <https://discuss.elastic.co/t/dynamic-color-mapping-by-trend/381113>\
**Category:** Kibana\
**Created:** [August 18, 2025, 3:18pm UTC](https://discuss.elastic.co/t/dynamic-color-mapping-by-trend/381113 "2025-08-18T15:18:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Le\_Philosophe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/le_philosophe/32/144664_2.png) [@Le\_Philosophe](https://discuss.elastic.co/u/Le_Philosophe)\
**Post date:** [August 18, 2025, 3:18pm UTC](https://discuss.elastic.co/t/dynamic-color-mapping-by-trend/381113/1 "2025-08-18T15:18:21Z")

</div>

Hello, I have a simple dashboard where I display a metric (no of files collected).Now I have a filter by the type of feed and I want each time I select a feed the color mapping adjust automatically refering to the trend of these fields. I try to use the dynamic color by value but the tresholds don’t reflect the trends. How can i solve this problem? And by the way, how Kibana find the treshold values dynamically?Thx

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [August 19, 2025, 8:28am UTC](https://discuss.elastic.co/t/dynamic-color-mapping-by-trend/381113/2 "2025-08-19T08:28:23Z")

</div>

Hello @Le_Philosophe

Welcome to the community!!

To understand your requirement , could you please share below information :

Say Last 24 hours \>\> metric count (total records) \>\> 100  
feed is a drop down filter with below options \>\>

feed A \>\> 25  
feed B \>\> 50  
feed C \>\> 15  
feed D \>\> 10

So now what color code you are expecting if we do not select dynamic option for various feeds ?

feed D \>\> red  
feed A,C \>\> yellow  
feed B \>\> green

What is the unique count of feeds in your environment?

Thanks!!

---

<div class="post-metadata">

**Author:** ![Le\_Philosophe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/le_philosophe/32/144664_2.png) [@Le\_Philosophe](https://discuss.elastic.co/u/Le_Philosophe)\
**Post date:** [August 25, 2025, 8:03am UTC](https://discuss.elastic.co/t/dynamic-color-mapping-by-trend/381113/3 "2025-08-25T08:03:15Z")

</div>

Thanks!

Last 24 hours \>\> metric count (total records) \>\> 1524

feed is a drop down filter with below options \>\>

feed A \>\> 1469  
feed B \>\> 28  
feed C \>\> 22  
feed D \>\> 3

feed E \>\> 2

I expect for each feed having 3 tresholds P1, P2 & P3 dynamic with the feed selected mapped to the colors green, yellow & red but first I don’t understand the way kibana calculate these tresholds and last those don’t reflect the trend of the data.
