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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...