Splunk Search

Hide/unhide legend values by clicking on it

pero1234
Path Finder

On a Column Chart is it possible to hide/unhide legend values by clicking on it?

For eg. if I click on www3 in legend this action will hide www3 and I'll see only www1 and www2 on a chart.

timechart-by-clause-blog1.01.png

 

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

You can't do it via the legend, as that does not support drilldown - you'd have to play around with JS probably to get that to work.

I assume you want to be able to unhide it again, so you can't do it directly on that chart, but you could do it by having another set of buttons in another panel that would provide a filter set to show/hide those.

I've often done this either through a multiselect input above the chart or a link input where the inputs are tabbed horizontally, e.g.

bowesmana_0-1697063470846.png

You can see how that is done in the Itsy Bitsy app for Splunk - https://splunkbase.splunk.com/app/5256

 

0 Karma
Get Updates on the Splunk Community!

New Case Study Shows the Value of Partnering with Splunk Academic Alliance

The University of Nevada, Las Vegas (UNLV) is another premier research institution helping to shape the next ...

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

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