# Can't find function that filters data

**URL:** <https://discuss.elastic.co/t/cant-find-function-that-filters-data/186558>\
**Category:** Kibana\
**Created:** [June 19, 2019, 10:47pm UTC](https://discuss.elastic.co/t/cant-find-function-that-filters-data/186558 "2019-06-19T22:47:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slane](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@slane](https://discuss.elastic.co/u/slane)\
**Post date:** [June 19, 2019, 10:47pm UTC](https://discuss.elastic.co/t/cant-find-function-that-filters-data/186558/1 "2019-06-19T22:47:23Z")

</div>

I'm working on trying to develop a way allow users to click on data points on vega graphs to create a filters, in the same way that users currently can on the Kibana native graphs. I am not having any luck with finding the function that begins the entire filtering process. Anyone know what function is called when a user clicks on a data point from a kibana native graph, or when they click apply in the the select filters to appy window?

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 27, 2019, 4:19pm UTC](https://discuss.elastic.co/t/cant-find-function-that-filters-data/186558/2 "2019-06-27T16:19:54Z")

</div>

Hi @slane  
I think you are looking for the following:

> <https://github.com/elastic/kibana/pull/17586>

  
There are few example on how to apply context filters from an event. I think these example can be also applied to the click event on a single datapoint

---

<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:** [July 25, 2019, 4:19pm UTC](https://discuss.elastic.co/t/cant-find-function-that-filters-data/186558/3 "2019-07-25T16:19:57Z")

</div>

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