Event Handling in Kibana

I want to handle events triggering on Kibana visualizations from the dashboard.When a click event is triggered I want to open a popup or navigate to other screen.Can anyone help me on this ?

You can see an example of how click handlers are added to visualizations here: https://github.com/elastic/kibana/blob/master/src/plugins/kibana/public/dashboard/components/panel/lib/visualization.js#L12