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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...