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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...