Splunk Enterprise

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

robertlynch2020
Influencer

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
Influencer

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
Influencer

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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...