# Need to segregate the colors based on the condition (Percentage) in TSVB Gauge chart

**URL:** https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744
**Category:** Kibana
**Created:** [December 21, 2022, 9:52am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744 "2022-12-21T09:52:40Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Abj\_Ins](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Abj\_Ins](https://discuss.elastic.co/u/Abj_Ins)
#### Post date: [December 21, 2022, 9:52am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/1 "2022-12-21T09:52:40Z")

</div>

Hi Team,  
we are trying to apply the conditions to get the colors based on values under TSVB Gauge ---\> Panel options.  
We are not getting as expected mentioned in screens below.  
For ex... if percentage \<75 then we need **RED Color**  
else if percentage \>=75 then expecting other color like **GREEN Color**  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6bbb60c162e04d9df802fd706ae00ee3e877cb6e.png)

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

Thanks.

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [December 21, 2022, 10:48am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/2 "2022-12-21T10:48:18Z")

</div>

Hey! Can you share your configuration with me (screenshot on the panel options and data options). I assume you are using a percent formatter right? Which version of kibana do you us?

---

<div class="post-metadata">

### Author: ![Abj\_Ins](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Abj\_Ins](https://discuss.elastic.co/u/Abj_Ins)
#### Post date: [December 22, 2022, 6:58am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/3 "2022-12-22T06:58:59Z")

</div>

Thanks @Stratoula_Kalafateli for response..

Here, we are using ELK Version : 8.5.2 and **Custom** as Data formatter.

Please find the requested screenshots below

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1dfabeba4603bb6ca1030d5ce7bb38209ed42619.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a0f32f079764dd2146b4785eda700f6894825205.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d95ba3da60bf8357c9e8c0a7495c9d57cecbee5c.jpeg)

Also tried with Data Formatter as **Percent** , still issue exists as below.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/52f1702d4b6430b1752a013d85eb6a01010a91a8.png)

Thanks.

---

<div class="post-metadata">

### Author: ![hendry.lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendry.lim/32/71328_2.png) [@hendry.lim](https://discuss.elastic.co/u/hendry.lim)
#### Post date: [December 22, 2022, 7:04am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/4 "2022-12-22T07:04:07Z")

</div>

Try with `0.75` instead of `75`.

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [December 22, 2022, 10:40am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/5 "2022-12-22T10:40:26Z")

</div>

Exactly you have to set 0.75 here.

---

<div class="post-metadata">

### Author: ![Abj\_Ins](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Abj\_Ins](https://discuss.elastic.co/u/Abj_Ins)
#### Post date: [December 22, 2022, 10:52am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/6 "2022-12-22T10:52:35Z")

</div>

Thanks @hendry.lim, it's working now...

---

<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: [January 19, 2023, 10:52am UTC](https://discuss.elastic.co/t/need-to-segregate-the-colors-based-on-the-condition-percentage-in-tsvb-gauge-chart/321744/7 "2023-01-19T10:52:46Z")

</div>

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