Can we change the background color based on String value?

Can we change the background color based on String value? Like Red for ‘down’ and Green for ‘up’ ? I see that we can update it for number values, but is it possible for String as well? I’m using Grafana version 7.2

1 Like

Hi

If you have type of visualization “Text” you can change mode to HTML and put below code:
<p style="background-color:red;color:white">your text</p>