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
Get Updates on the Splunk Community!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...