# Disable adding filter upon click on a bar chart

**URL:** <https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350>\
**Category:** Kibana\
**Created:** [March 16, 2021, 10:44am UTC](https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350 "2021-03-16T10:44:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasun](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kasun](https://discuss.elastic.co/u/kasun)\
**Post date:** [March 16, 2021, 10:44am UTC](https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350/1 "2021-03-16T10:44:35Z")

</div>

![Screenshot from 2021-03-16 16-10-02](https://us1.discourse-cdn.com/elastic/original/3X/5/3/533d2cfbfecc25d227bf768e8ed4726002b0d44d.png)

Hi all,

In above chart when I click on bars it will automatically add a filter to the entire dashboard.

As an example when I click on the first bar it will add a filter as in below.

![Screenshot from 2021-03-16 16-10-34](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d662b313d105ca2f6c1dbfc83e02b0c83e756337.png)

Is there a way to disable this behaviour?

Thanks

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 16, 2021, 11:01am UTC](https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350/2 "2021-03-16T11:01:06Z")

</div>

There's no way to disable this. What's your use case? Why is this a problem for your dashboard? Trying to learn what kind of feature we could offer here.

---

<div class="post-metadata">

**Author:** ![kasun](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kasun](https://discuss.elastic.co/u/kasun)\
**Post date:** [March 16, 2021, 11:12am UTC](https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350/3 "2021-03-16T11:12:37Z")

</div>

Thanks for the reply.

There are two charts in my dashboard, in one chart I use this behaviour for filter out some data. And it gives meaningful visualisation on the dashboard.

But when click on the other chart filtered out data on dashboard becomes meaningless, so I wanted disable it on that chart.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 16, 2021, 12:47pm UTC](https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350/4 "2021-03-16T12:47:40Z")

</div>

I see, this makes sense, thanks for explaining.

As mentioned, it's not possible right now but you can create a feature request here: [https://github.com/elastic/kibana/issues/new?assignees=&labels=&template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?assignees=&labels=&template=Feature_request.md) to raise awareness

Edit: Actually, there's one workaround for this. Instead of using Visualize, you can create the same visualization using vega ([Learn to build rich Vega Visualizations in Kibana | Elastic Blog](https://www.elastic.co/blog/getting-started-with-vega-visualizations-in-kibana)). In vega, you have full control over all aspects and by default there's no filter action on click.

---

<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:** [April 13, 2021, 12:48pm UTC](https://discuss.elastic.co/t/disable-adding-filter-upon-click-on-a-bar-chart/267350/5 "2021-04-13T12:48:27Z")

</div>

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