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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...