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 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...