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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...