How to Hide a Panel Based on Variable Values in Grafana?

I have a variable in my dashboard that is populated by an API call, with the following response format:
[
{ “id”: 1, “name”: “Compressor”, “value”: 100 },
{ “id”: 2, “name”: “HVAC”, “value”: 80 }
]

I want to hide a panel completely if the above API response does not include an entry with the name "Compressor". The variable is not used anywhere else and is not displayed on the dashboard. I only want to hide the panel based on whether or not the API response includes the name "Compressor".

How can I achieve this in Grafana?

there is no option to hide a panel based on a variable

https://community.grafana.com/search?q=hide%20a%20panel

so an empty panel? try it with Business Chart