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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...