# Link embed visualization to querybar and filterbar

**URL:** <https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229>\
**Category:** Kibana\
**Created:** [November 2, 2017, 5:36pm UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229 "2017-11-02T17:36:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![havidarou](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@havidarou](https://discuss.elastic.co/u/havidarou)\
**Post date:** [November 2, 2017, 5:36pm UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/1 "2017-11-02T17:36:57Z")

</div>

Hi,

I've been reading the documentation here: [https://www.elastic.co/guide/en/kibana/master/development-embedding-visualizations.html](https://www.elastic.co/guide/en/kibana/master/development-embedding-visualizations.html)

And at some point it says "time picker must be present (enabled) on the page" and a while bellow that "without linking to querybar or filterbar"

How can we enable this?

And related to this, how can we make clicking in a visualization part (for example, a part in a pie) will be used as filter in other visualizations embedded in the same page?

Regards.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [November 3, 2017, 10:32am UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/2 "2017-11-03T10:32:58Z")

</div>

Hi @havidarou,

so you want to write a kibana plugin that uses the query bar, filter bar and the timepicker? One example of enabling the timepicker can be seen in the visualize source code at [https://github.com/elastic/kibana/blob/ac5ae44590b70f0228c66c526871a609844288e2/src/core\_plugins/kibana/public/visualize/editor/editor.js#L198](https://github.com/elastic/kibana/blob/ac5ae44590b70f0228c66c526871a609844288e2/src/core_plugins/kibana/public/visualize/editor/editor.js#L198). I might be able to point you to some other examples if you can give a more detailed description of the purpose and structure of your plugin.

---

<div class="post-metadata">

**Author:** ![havidarou](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@havidarou](https://discuss.elastic.co/u/havidarou)\
**Post date:** [November 3, 2017, 10:42am UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/3 "2017-11-03T10:42:54Z")

</div>

Hi @weltenwort

thanks for your reply.

What I am trying to achieve is:

- Have several visualizations in one page.
- Filter them by using the timepicker, lucene, etc.
- Make a selection in one visualization become a filter for the rest.

Regards.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [November 3, 2017, 11:19am UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/4 "2017-11-03T11:19:55Z")

</div>

That sounds very much like a dashboard. In which respects do dashboards not match your requirements?

---

<div class="post-metadata">

**Author:** ![havidarou](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@havidarou](https://discuss.elastic.co/u/havidarou)\
**Post date:** [November 3, 2017, 11:24am UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/5 "2017-11-03T11:24:33Z")

</div>

I want to replicate that in my plugin as I also mix configuration about my own software and other stuff.

I guess what I want is to make an embed visualization monitors an AppState shared among different embed visualizations and then make the searchbar also monitors that state. Am I wrong?

I opened another topic: [Error when providing AppState to an embeded visualization](https://discuss.elastic.co/t/error-when-providing-appstate-to-an-embeded-visualization/106231/2)

Regards.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [November 3, 2017, 11:27am UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/6 "2017-11-03T11:27:58Z")

</div>

Ok, that makes sense. Let's try to focus the discussion in the other topic so we don't cross streams. I have asked the visualizations team to help you out there.

---

<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:** [December 1, 2017, 11:28am UTC](https://discuss.elastic.co/t/link-embed-visualization-to-querybar-and-filterbar/106229/7 "2017-12-01T11:28:13Z")

</div>

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