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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

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