Dashboards & Visualizations

How to create a drop-down where clicking on ChoiceA will show GraphA and ChoiceB will show GraphB?

clairebesson
Explorer

Hey everyone !

I am currently working with Splunk and I really need your help.

Firstly, I have created two graphs from two csv sources.

Then, I am trying to create a drop-down with two choices. If I click on the first choice, I want my first graph to appear. If I click on the second choice, I want to see my second graph.

Can somebody can help me to link my graph with the drop-down?

Thank you so much,

Claire

Tags (2)
0 Karma
1 Solution

dolivasoh
Contributor

The Dashboard Examples App has a section on doing exactly this. Just install it and the rest is pretty clear.

View solution in original post

0 Karma

dolivasoh
Contributor

The Dashboard Examples App has a section on doing exactly this. Just install it and the rest is pretty clear.

0 Karma

clairebesson
Explorer

Hi ! thanks for the help. in order to add the link switcher I have to add link_switcher.js and two other javascript functions. How to add javascript with Splunk ?
Thank you in advance.

0 Karma

clairebesson
Explorer

Thank you very much for your answer.
I have already download the Dahsboard Examples App. Are you talking about the section "Dropdown Form Input Element ?

I tried to implement the xml code of this section but it didn't work (I'm a splunk beginner).
In the example we can choose between different sourcetype. For my part I have two different sources and I have created one graph from each source (so I have two graphs). This two graphs are in the same dashboard. However, what I want is to see just one graph in my dashboard. Also, I want a dropdown that permits me to select which graph I want to display.

Could you please help me with that?

Thank you very much for your help

0 Karma

dolivasoh
Contributor

Look at the custom link switcher at {{SPLUNK_URL}}/en-US/app/simple_xml_examples/custom_link_switcher

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...