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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

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