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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...