Dashboards & Visualizations

how to color table values and not the whole cell

rijinc
Explorer

Table values are in a range from 0-100%
0-30 Red
30-80 AMber
90-100 Green

Only the values need to be colored not the whole cell is it possible ?

0 Karma

DalJeanis
Legend

In the CSS definition of the font style, you'd set the font color instead of the background color.

See this for some general code of this type. In this example, the css is setting the background colors, which is the usual method - https://answers.splunk.com/answers/217393/how-to-display-colored-cells-or-rows-in-a-dashboar.html

See this one for an example that instead, sets the font color to blue -
https://answers.splunk.com/answers/152636/dashboard-panel-statistics-table-how-to-change-font-of-sin...

Obviously, you'd need to define a font style in your css for the un-highlighted cells and any other highlights you wanted as well.

0 Karma
Get Updates on the Splunk Community!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...