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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...