Color conditions
With color conditions you can define what background and text color your widget should use depending on the value of a certain dataset or script.
This can be useful for e.g. giving your widget a red background color if some value is getting critically high/low, or a green background if the value is okay.
Color conditions are available for all widget types and can be found in the Colors tab of the widget editor.
While color conditions are also available in the overview widget type, they work a bit differently there. For more information please check the documentation for color conditions in overview widgets here.
Here you can define as many color conditions as you need. Each color condition is defined by the following values:
  • Datasource type / Datasource / Column: With these settings you can define which value you want to compare you color condition against. Note that the column select will only display numeric columns from your selected Datasource.
  • Text color / Background color: If your condition matches your selected text color and / or background color will be applied to your widget.
  • Min / max: With these settings you define the range in which your datasource value needs to be in order for the condition to match.
Color conditions only check the first row of a datasource.
As an example, here is an image of a color condition being applied to a text widget:
Matching color condition on a text widget
As long as the value in the test-3 column of the SD-3655-4 dataset is a value between 0 and 2, the background color of the widget will be the selected green and the text color will be the selected black. As soon as the value doesn't match this or any other color conditions, the widget will be displayed in its default state with a white background and black text color.
If multiple color conditions match, it will always be last one that is getting applied.
Copy link