Dashboards & Visualizations

how to give colors to single value visualization if results are in Text format??

Puvi
New Member

Hi,

i have singe value field with output in text format like normal,critical,low,elevated
i have to give respective colors.
how to do it?

0 Karma

vnravikumar
Champion

Hi

Try this

By default, a single value visualization has this color mapping configuration for ranges.

low: green
guarded: blue
elevated: yellow
high: orange
severe: red

...| eval range=case(your_field_name=="your_field_value1", "severe", your_field_name=="your_field_value2","high",
    your_field_name=="your_field_value3","elevated",
    your_field_name=="your_field_value4","guarded",your_field_name=="your_field_value5","low",
    1=1,"low")
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...