Dashboards & Visualizations

Changing the colour of a table cell depending on the numerical value

watsm10
Communicator

Hi Splunkers,

I have a simpleResultsTable module on an Advanced XML Dashboard that looks like this:


Users | User 1 | User 2 | User 3 | User 4 | User 5 | User 6 | User 7 |
Success % | 100% | 100% | 89% | 100% | 92% | 100% | 100% |
Fail % | 0% | 0% | 11% | 0% | 0% | 0% | 0% |

It is linked to a saved search which runs every hour. As you can see, "User 3" has a "Success %" of 89% and "User 5 has a "Success %" of 92%. I would like to assign a rule to the "Success %" row to change the colour of a single cell which is below 90% to red and a cell between 90%-95% to amber, while leaving the others above 95% as green.

Is there an easy way of implementing this?
Possibly an app, or coding Javascript?

Many thanks!

0 Karma

bmacias84
Champion

Yes it is possible. There is an app called rowcolorizer. It mostly a POC app, but it will get you most of the way there.

0 Karma

11001830
New Member

getting error message like "This app is currently not available..."
Any suggestions please...

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...