Conditional Legends

Hi,

Can anyone help if conditional legends are supported in Grafana any how?

My requirement is if I select “All” from the filter legends should display pod names in legends for user to understand graph from each pod. But If I choose any single pod, pod name is not required as it is self explanatory that the data which is showing on the Graph is for selected pod.

So, something like if “All” then {{pod}} else {{ }}