Hide graph panel when there is no data

I’m using Grafana latest Version.

Datasource : InfluxDB

Is there any option available to hide the graph panel when there is no data ?. Since I’m using same dashboard for both Firewall and Switch monitoring.

Some switch[Older] doesn’t have CPU metric data. I want to hide CPU graph panel when I select switch on template name.

No, currently there is no option for this. but there is an open feature request for this. Not sur when or how we might implement this though.