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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...