Displaying a Non-Numeric Value

The previous examples describe widget scenarios with number values; however, the Single Value widget can also display a non-numeric value: for example, you may set an emoji symbol to depict the state of a particular outcome from your events:

logscale Syntax
tail(1)
| case {
    fieldA = "true"
| emoji := "😀"
    *
| emoji := "😔"
}
| select(emoji)

This query produces a single result with a field called emoji and specifies that the emoji will be set to "😀" if a given fieldA is true, else it will be set to "😔":

Non-Numeric Single Value Widget

Figure 216. Non-Numeric Single Value Widget