# Filter using a button on vega map

**URL:** <https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615>\
**Category:** Kibana\
**Created:** [February 3, 2020, 11:17am UTC](https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615 "2020-02-03T11:17:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aadesh\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aadesh_sharma/32/60543_2.png) [@Aadesh\_Sharma](https://discuss.elastic.co/u/Aadesh_Sharma)\
**Post date:** [February 3, 2020, 11:17am UTC](https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615/1 "2020-02-03T11:17:10Z")

</div>

Hi,  
I have made a button on vega map and I want to use that button as a filter I have a field called "cat" in my index and in "cat" there are three values high, medium and low. I have added a button named high I need to configure that button so that if anyone click on that button it will show only high category points on map.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [February 3, 2020, 5:27pm UTC](https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615/2 "2020-02-03T17:27:09Z")

</div>

Hey @Aadesh_Sharma, do you want the filter to apply to the Vega visualization itself, or other Visualizations within a Dashboard?

---

<div class="post-metadata">

**Author:** ![Aadesh\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aadesh_sharma/32/60543_2.png) [@Aadesh\_Sharma](https://discuss.elastic.co/u/Aadesh_Sharma)\
**Post date:** [February 4, 2020, 5:48am UTC](https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615/3 "2020-02-04T05:48:45Z")

</div>

only vega visualization itself

---

<div class="post-metadata">

**Author:** ![Aadesh\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aadesh_sharma/32/60543_2.png) [@Aadesh\_Sharma](https://discuss.elastic.co/u/Aadesh_Sharma)\
**Post date:** [February 4, 2020, 6:30am UTC](https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615/4 "2020-02-04T06:30:32Z")

</div>

and please tell me if I need to apply within a dashboard also that would be very helpful for me

---

<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:** [March 3, 2020, 6:30am UTC](https://discuss.elastic.co/t/filter-using-a-button-on-vega-map/217615/5 "2020-03-03T06:30:32Z")

</div>

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