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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...