Dashboards & Visualizations

Change cell color based on another field value

baty0
Explorer

Hi,

Is it possible to change the cell color not based on the cell value but based on another cell/field value?

Thanks

Tags (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@baty0

Can you please check my answer in the following link?

https://answers.splunk.com/answers/661894/how-to-color-cell-contents-with-css-and-js.html

baty0
Explorer

Thanks for your response,

Is there a way to do this without using CSS and JS? I do not have access to add files in the Splunk folder.

0 Karma

niketn
Legend

@baty0 using Simple XML alone you would need to merge the two cells together as one field and use colorPallette with expression to apply colors based on pattern match. However, you would need JS to remove other cell value once colors are applied as per your use case.

Refer to the following answer with both examples: https://answers.splunk.com/answers/686288/how-do-you-highlight-a-table-cell-based-on-a-field.html#an...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
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 ...