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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...