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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...