Dashboards & Visualizations

How to Apply color coding to a column based on the condition applied to a different column in the same table?

preacher_15
Explorer

Hi All,
I have 3 columns forecast, actuals and percentage. what i need is based on the values of the percentage column i want to apply a condition to it and color the forecast and actuals columns accordingly.
example:
forecast actuals percentage
100 150 1%
300 200 10%

500 400 50%
condition i want to apply is if Percentage is Greater than 1% and less than 10% apply color red to forecast and actuals
if Percentage is Greater than 10% and less than 50% apply color green to forecast and actuals
how can i achieve this using java script and css?

Tags (1)
0 Karma

ashajambagi
Communicator
0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...