Dashboards & Visualizations

How to get a bootstrap modal pop-up from a piechart in my dashboard?

sfatnass
Contributor

Hi everybody,

I'm trying to get modal popup from some pie chart in my dashboard.

My objective is to open a popup panel for a detail search.

I found this code :

http://blogs.splunk.com/2014/02/24/using-bootstrap-modal-with-splunk-simple-xml/

but when run it, the icon that should launch the popup disappears.

Can anybody help me? thx

Tags (3)
0 Karma

jeffland
SplunkTrust
SplunkTrust

Unfortunately, the code from that blog post is no longer correct. You can however do it just like they propose directly on their page.

0 Karma

sfatnass
Contributor

thx jeffland.

but i found another code
https://hurricanelabs.com/blog/splunk-custom-modal-view-creation-part-3-adding-the-final-touches/

it work fine with table search.

but i don't know how i can use it for piechart, i tryed but it not work.

i can get any elements from chart using this chartData.columns from splunkjs.mvc.Components.attributes
can you try to use that code for piechart ?? thx

0 Karma

jeffland
SplunkTrust
SplunkTrust

This is not a problem with the modal, this is about the right event which causes the modal to appear. You might want to start here and have a look for how to react to drilldown events.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...