Customize "No data" with HTML

Hi all,

I have panels in my dashboards for which my data source (SQL Server queries) might not return any data. This is not a sign of any error; this can be expected for many different circumstances.

When I get no data, Grafana simply shows “No data” in the middle of the panel, which is fine for something pretty basic. I know I can use the “No value” field under “Standard options”, which exists for most panel types, to replace the text, and that works. However, that’s plain text, which doesn’t offer many options, such as presenting bullet point lists or even line breaks (“\n” renders, literally, as “\n”).

I know the Text control allows more sophisticated options, such as full HTML.

Here’s my question. If I have a table, and get no data back, how can I have it replaced on-the-fly with a textbox that has HTML content? That would give me the opportunity to provide the user with a more thorough explanation as to why he’s not seeing any data, present a bullet-point list of things to try, etc.

Or if there’s a simpler way than to try to replace the table on the fly, I’m open to all suggestions…

Thanks.