Hide Text/Heading if no results below

Hello,

Is it possible to hide a text/heading widget if the charts below it are hidden because they have no data?

If not, are there any hacks to make this work?

Thanks