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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...