Dashboards & Visualizations

Dynamically Changing the Content / Chart in the panel

rakesh_498115
Motivator

Hi

I have a created a panel ..I need to change the contents of the panel basing on the user's selection . how can i do that ? . ie In the same panel the content of of display (chart to be displayed ) should change dynamically.

Thanks

Tags (2)
0 Karma
1 Solution

OL
Communicator

Hi,

Not sure that I fully understand your question, but I will try to give an answer.

  1. Possible answer: What you might need is to create simple form (http://docs.splunk.com/Documentation/Splunk/latest/Developer/Step1CreateAForm). With a drop down, you can change the content of the whole page. You can use the advanced XML as well if you are looking for more complex stuff, but I would suggest to stick with simplified XML if you are a beginner.
  2. Other possible answer: If you mean, when you click on a graph, it changes the content of another graph, you might need to use the customise drilldown option (http://docs.splunk.com/Documentation/Splunk/latest/Developer/TableChartDrilldown). This is much more complex but does really nice stuff.

Feel free to use available example apps such as http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41 to see what you can do, then have a look at the source xml to understand how it has been done.

Hope this helps.

Regards,
Olivier

View solution in original post

john
Communicator

Hi rakesh,

My suggestion is try to use ConditionalSwitcher module.Using this module you could able to switch your dashboard panels on user input.

0 Karma

OL
Communicator

Hi,

Not sure that I fully understand your question, but I will try to give an answer.

  1. Possible answer: What you might need is to create simple form (http://docs.splunk.com/Documentation/Splunk/latest/Developer/Step1CreateAForm). With a drop down, you can change the content of the whole page. You can use the advanced XML as well if you are looking for more complex stuff, but I would suggest to stick with simplified XML if you are a beginner.
  2. Other possible answer: If you mean, when you click on a graph, it changes the content of another graph, you might need to use the customise drilldown option (http://docs.splunk.com/Documentation/Splunk/latest/Developer/TableChartDrilldown). This is much more complex but does really nice stuff.

Feel free to use available example apps such as http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41 to see what you can do, then have a look at the source xml to understand how it has been done.

Hope this helps.

Regards,
Olivier

Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...