Hide empty data from panel

Using what function can I hide a visualization if sometimes there is no data in it, and so that it appears again when data appears in it. I found this link Hide empty / no data panels · Issue #4470 · grafana/grafana · GitHub, maybe there is already a solution or someone is well versed in this