# Modifying the \`onclick\` event of kibana visualisations

**URL:** <https://discuss.elastic.co/t/modifying-the-onclick-event-of-kibana-visualisations/145189>\
**Category:** Kibana\
**Created:** [August 20, 2018, 2:25pm UTC](https://discuss.elastic.co/t/modifying-the-onclick-event-of-kibana-visualisations/145189 "2018-08-20T14:25:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Tan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_tan/32/83546_2.png) [@Jonathan\_Tan](https://discuss.elastic.co/u/Jonathan_Tan)\
**Post date:** [August 20, 2018, 2:25pm UTC](https://discuss.elastic.co/t/modifying-the-onclick-event-of-kibana-visualisations/145189/1 "2018-08-20T14:25:27Z")

</div>

Hi,

I'm exploring another approach to meeting my requirements, and am currently looking at `iframe` embeds of my kibana visualisations.

My specific use case is when a user clicks on a graph item (e.g. bars in a histogram or bar chart), a form/widget appears that the user can then do something with. Essentially, the user needs to perform a follow-up action based on the graphs that they are seeing.

What I'm hoping for, is a way to modify the `onclick` event. Being able to do that, means that I can use a `postMessage()` function to send the target (and corresponding information) of the `click` event to the parent page that has the embedded iframe.

I know I've seen older requests for such a piece of functionality. I haven't been able to find any recent comments stating that this has now been built, or that it has been scheduled for a later release or something...

Is there a view on whether the kibana team will consider this piece of functionality?

And any advice/warnings about how to accomplish this in my own kibana codebase?

Thank you!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [August 20, 2018, 7:11pm UTC](https://discuss.elastic.co/t/modifying-the-onclick-event-of-kibana-visualisations/145189/2 "2018-08-20T19:11:18Z")

</div>

@ppisljar - can you plz take this up ? is this supported ? you may know more info ...

AFAIK, This is not something that is currently supported in kibana, but please do open an enhancement request on([https://github.com/elastic/kibana](https://github.com/elastic/kibana))

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [August 21, 2018, 7:08am UTC](https://discuss.elastic.co/t/modifying-the-onclick-event-of-kibana-visualisations/145189/3 "2018-08-21T07:08:40Z")

</div>

as rashmi mentioned this is currently not supported, but its something we are thinking of [https://github.com/elastic/kibana/issues/19875](https://github.com/elastic/kibana/issues/19875) and will be implemented in the future

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 18, 2018, 7:11am UTC](https://discuss.elastic.co/t/modifying-the-onclick-event-of-kibana-visualisations/145189/4 "2018-09-18T07:11:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
