# Change colour of Metric Visualization for Percentile ranks aggregation

**URL:** <https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454>\
**Category:** Kibana\
**Created:** [June 30, 2021, 12:18pm UTC](https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454 "2021-06-30T12:18:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavank](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pavank](https://discuss.elastic.co/u/pavank)\
**Post date:** [June 30, 2021, 12:18pm UTC](https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454/1 "2021-06-30T12:18:15Z")

</div>

Hi

Kibana: 7.9.3  
We are using metric visualization to get percentile ranks. Based on the percentage, I am trying to change colour of the background from Green to Red. But the color remains the same for any Ranges I give in the Options. Is there a way I can get the background colour to change like below?  
Green (\>95%)  
Red (\<95%)  
Attaching a screenshot for reference.

 ![Metric Visualization - change colour](https://us1.discourse-cdn.com/elastic/original/3X/3/3/33fdb9dedac8fb2c07329f83d62379c19e3fd1a1.png)

Please let me know if additional details are necessary from my side?

Regards,  
Pavan

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 30, 2021, 12:48pm UTC](https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454/2 "2021-06-30T12:48:17Z")

</div>

percentage values go from 0 to 1 - try to use 0 to 0.95 and 0.96 to 1 instead

---

<div class="post-metadata">

**Author:** ![pavank](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pavank](https://discuss.elastic.co/u/pavank)\
**Post date:** [June 30, 2021, 12:57pm UTC](https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454/3 "2021-06-30T12:57:04Z")

</div>

Thank you so much. That worked.  
I thought only if the Options of Percentage mode was selected we set the range from 0-1.

Thanks very much again.

Regards,  
Pavan

---

<div class="post-metadata">

**Author:** ![pavank](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pavank](https://discuss.elastic.co/u/pavank)\
**Post date:** [June 30, 2021, 2:48pm UTC](https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454/4 "2021-06-30T14:48:57Z")

</div>

Hello @flash1293

Sorry to reopen this discussion. I'm also trying to replace all the test below the values **'Confirm Shipment - Percentile rank 30 of "duration" SLO** with a custom Label like **Confirm Shipment - SLO** , but doesn't work. How do I do that?  
This is what my Metric and Bucket tabs look like this:  
 ![Custom label in Buckets](https://us1.discourse-cdn.com/elastic/original/3X/1/1/112603d30f5ff27518c495fd792de0b914f32548.png)

 ![Custom label in Metrics](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae840e6d62856b03fb738e7353a99f576218dbc1.png)

Could you please help me sort this out??

Regards,  
Pavan

---

<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 28, 2021, 2:49pm UTC](https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454/5 "2021-07-28T14:49:45Z")

</div>

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