Splunk Enterprise

How to color cells based on there values and bases on the cells before it?

robertlynch2020
Motivator

Hi

I have lots of data that I want to see on one screen, so I need to use a transpose.

When I do this I cant add colours easily

As you can see below this is what I want.

when the % is over 100 it goes red and below 100 it goes green, but only for the columns with % in then.

robertlynch2020_0-1648753358927.png

Any help would is great thanks.

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

You can also do this with CSS (no javascript)

https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-row-if-unique-values-exist-withi... 

Essentially, you extend the fields you want coloured with a multivalue representing the colour you want, use colour palette to convert the value to a colour and use CSS to hide the additional multivalue.

View solution in original post

robertlynch2020
Motivator

Hi

 

IN the end i used this answer to get me where i needed to go.

https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-font-color-based-on-a-condit...

 

robertlynch2020_0-1649062457155.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You can also do this with CSS (no javascript)

https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-row-if-unique-values-exist-withi... 

Essentially, you extend the fields you want coloured with a multivalue representing the colour you want, use colour palette to convert the value to a colour and use CSS to hide the additional multivalue.

robertlynch2020
Motivator

Hi

 

This for the answer. 

I used this one and yours to get me there.

https://community.splunk.com/t5/Dashboards-Visualizations/How-to-change-font-color-based-on-a-condit...

 

robertlynch2020_0-1649062529009.png

 

0 Karma

mayurr98
Super Champion
Get Updates on the Splunk Community!

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...

Reminder! Splunk Love Promo: $25 Visa Gift Card for Your Honest SOAR Review With ...

We recently launched our first Splunk Love Special, and it's gone phenomenally well, so we're doing it again, ...