Dashboards & Visualizations

Column color changed based condition in splunk dashboard

singhrakesh
Explorer

Hi All,

I am quite struck in one of the requirement as Column color has to changed based on condition.

Activity Percentage Percentage_2hr
A 53.79464286 53.84615385
B 43.67559524 42.51447477
C 39.88095238 37.88254756
D 36.68154762 36.14557486
E 36.60714286 35.07030604

If percentage >= OR < Percentage_2hr then Activity and Percentage color column will be changing.

0 Karma

singhrakesh
Explorer

Thanks Dindu for your response but lookup file while based on backend query.

I already tried the suggestion but its not working. I think it need to go with dashboard followed by splunk js

0 Karma

dindu
Contributor
0 Karma

dindu
Contributor

Hi Rakesh,
If you are using a Splunk version 6.5 or higher - you can do it from UI.
Click on the brush icon next to the table header upon choosing the edit dashboard. It will give a color option. Click on that
Choose range and entry the values for the range and desired colors.

Edit Dashboard --> Click on the brush Icon next to the column header -->Choose Color -->Select "Range" from drop down -->Enter the range of values -->Save.

Please refer to the URL for more details.
https://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting.

Please try and let us know

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...