Dashboards & Visualizations

How do you set the colour of a Single Value showing text?

sillingworth
Path Finder

My Single Value is showing text, not a number, so setting a colour range doesn't work, it always stays dark grey.

I've found answers to this that use classField, but Splunk tells me that's deprecated.

Is there another way to do this?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

We had the same problem. The classField option worked until we installed 6.5.2. Even though it's deprecated, we expect it to work correctly until removed.
Our workaround is to turn off the useColors option. Seems counter-intuitive, but it worked.

<option name="useColors">0</option>
---
If this reply helps you, Karma would be appreciated.
0 Karma

sillingworth
Path Finder

Ah, that's stopped it colouring the whole block, but now the text has turned dark grey.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That didn't happen to us. Are you using <option name="colorBy">value</option> and <option name="colorMode">block</option>?

---
If this reply helps you, Karma would be appreciated.
0 Karma

sillingworth
Path Finder

Yep. What colour is your text and how do you set it?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Our text is white, which I understand is the default color.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...