# Multiple Thresholds in a single panel

**URL:** <https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938>\
**Category:** Dashboards\
**Created:** [June 4, 2025, 10:33am UTC](https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938 "2025-06-04T10:33:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadilck01](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fadilck01](https://community.grafana.com/u/fadilck01)\
**Post date:** [June 4, 2025, 10:33am UTC](https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938/1 "2025-06-04T10:33:08Z")

</div>

- What Grafana version and what operating system are you using?

- Grafana 11.2

- **What** are you trying to achieve?

- Adding multiple thresholds for one metric in a geomap dashboard panel

Hi,

I have created a GeoMap panel with longitude and lattitude of few locations acroos the globe. I added switch latency of the respective locatiion in the panel. I gathered data from different datasorce and created couple of transformations to create a table like below

Location Latitude Longitude Latency  
London -0.12 51.5 1.5ms

I have latency from multiple, locations. The latency threshold is different for different locations. Is there an option in Grafana to set different thresholds to different locations? So that the map locations changes it’s color based on the locations.

Regards  
Fadil

---

<div class="post-metadata">

**Author:** ![infofcc3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/infofcc3/32/51248_2.png) [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Post date:** [June 4, 2025, 12:02pm UTC](https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938/2 "2025-06-04T12:02:56Z")

</div>

Hello @fadilck01 please confirm this is your requirement …

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/f/d/fda669e63b0ed0c874c2abb63bdbafcfdba8ae82.png)

---

<div class="post-metadata">

**Author:** ![fadilck01](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fadilck01](https://community.grafana.com/u/fadilck01)\
**Post date:** [June 4, 2025, 12:40pm UTC](https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938/3 "2025-06-04T12:40:13Z")

</div>

Hi,  
Currently I have route between each locations. It would be better if the route line colors are changed based on thresholds. If that’s not possible. Then it would be helpful if it changes the location color as shown in image which you have attached.

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [June 4, 2025, 4:28pm UTC](https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938/4 "2025-06-04T16:28:21Z")

</div>

**Part One**  
in geomap you can do it using a dynamic numeric value for Color coming from your data

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/7/0/70b6713399f92d8fcb95e494cd7a2fc5d1582829.png)

and selecting a color scheme in Standard Options

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/0/8/0876d835e116b126a93e7baaaf63283dc6006882.png)

But you have 0 control over what size and color.

**Part Deux**  
Another approach would be to use Business text with leaflet

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/2/9/29d3a1846e31b7a5a76eb63f84cfdf29864a04d2.jpeg)

> **[Leaflet.js | Volkov Labs](https://volkovlabs.io/plugins/business-text/external/leaflet/)**
>
> This is another great example of external resource usage in the Business Text Plugin. The idea comes from BlinderMiri and Josiah Solomon.

---

<div class="post-metadata">

**Author:** ![infofcc3](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/infofcc3/32/51248_2.png) [@infofcc3](https://community.grafana.com/u/infofcc3)\
**Post date:** [June 5, 2025, 9:12am UTC](https://community.grafana.com/t/multiple-thresholds-in-a-single-panel/151938/5 "2025-06-05T09:12:01Z")

</div>

Fetch data using this query…

```auto
SELECT 
    l.location,
    l.latitude,
    l.longitude,
    l.latency_ms,
    t.threshold_ms,
    CASE 
        WHEN l.latency_ms > t.threshold_ms THEN 'High'
        ELSE 'Normal'
    END AS status
FROM 
    location_latency l
JOIN 
    location_threshold t ON l.location = t.location;

```

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/4/c/4cb8b3a747977ed048573d9bab3bcdd9504bf102.png)  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/a/3a0e0fa0177454f0805589f5cddba2586abcfc12.png)
