Dashboards & Visualizations

Single Value Font Color

craigwilkinson
Path Finder

Hi All,

Is there a way to manipulate the font color of a Single Value panel?

I'm looking to use dark.css but notice the single value font color is a dark grey, which is nearly unreadable on the black background.
Would just like the font color to be white, with a green/red trend value.

Here's what I have tried to so far in editing dark.css:

/* SingleValue */
.SingleValueHolder {
        font-size: 14px;
        font-weight: bold;
        color: #ffffff !important;
}

.SingleValue .singleResult {
        font-size: 28px;
        vertical-align: -4px;
        margin: 0px 6px;
        color: #ffffff !important;
}

.SingleValue .None .singleResult {
        color: #ffffff !important;
}

.singleLabel {
        color: #ffffff !important;
}

The code for my single value:

    <panel>
      <single>
        <title>HFW01 DEV TCP OUT QUEUE</title>
        <search>
          <query>earliest=-10m  index=_internal host=*hfw* source=*metrics.log group=queue name=tcpout_devidx | eval queuecapacity_percent=round((current_size/max_size)*100,2) | eval current_size_mb=round((current_size/1024/1024),2) | eval max_size_mb=round((max_size/1024/1024),2)  | timechart span=1m max(queuecapacity_percent)</query>
          <earliest>-1d</earliest>
          <latest>now</latest>
        </search>
        <option name="refresh.auto.interval">300</option>
        <option name="afterLabel">%</option>
        <option name="colorBy">value</option>
        <option name="colorMode">block</option>
        <option name="numberPrecision">0.00</option>
        <option name="rangeColors">["0x65a637","0x65a637","0xf7bc38","0xf58f39","0xd93f3c"]</option>
        <option name="rangeValues">[0,50,70,90]</option>
        <option name="showSparkline">1</option>
        <option name="showTrendIndicator">0</option>
        <option name="trendColorInterpretation">standard</option>
        <option name="trendDisplayMode">absolute</option>
        <option name="trendInterval">-10m</option>
        <option name="underLabel">compared to 10mins before</option>
        <option name="useColors">1</option>
        <option name="useThousandSeparators">1</option>
        <option name="linkView">search</option>
        <option name="drilldown">none</option>
      </single>
    </panel>

Is there something I'm missing here?

Thanks,

Craig

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi craigwilkinson,
did you tried to use colors in your Single panel forcing the color?
you can force the color giving the same color to all the value ranges.
Bye.
Giuseppe

0 Karma

niketn
Legend

@craigwilkinson... If you are using dark.css from Splunk 6.x Dashboard Examples there is a comment explicitely for this...

Single value text must be left alone (grey) because if I override it then you can't color it later (via value or trend)

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

craigwilkinson
Path Finder

Thanks for the quick response - I noticed this, but i am still keen override for testing purposes.

Alternatively another way to achieve the desired result?

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...