Threshold lines in Grafana don’t toggle on/off with their corresponding series, leading to inconsistent visibility when switching between datasets

I have two data series (Temperature and Humidity) with separate field overrides configured. Each series has its own threshold displayed as lines:

  • Temperature → threshold = 32

  • Humidity → threshold = 70

Issue:

  • When I toggle Temperature only → Humidity threshold (70) disappears (expected)

  • But when I toggle Humidity only → Temperature threshold (32) still remains visible

Question:
Why does the Temperature threshold line not hide with the legend toggle, and is there a way to make thresholds behave dynamically per series?

hello @nattakarnpreesong Welcome to grafana community , please use field override propery of grafana, please follow the below steps to set threshould on Temperature and Humidity Fields.
Add field override
image
Fields with name


Select Temp fields and set threshould on it


same as for Humidity Fields.