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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

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