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!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

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

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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