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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...