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!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

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 ...