# Draw date histogram after with applying filter

**URL:** <https://discuss.elastic.co/t/draw-date-histogram-after-with-applying-filter/238511>\
**Category:** Kibana\
**Created:** [June 24, 2020, 2:58pm UTC](https://discuss.elastic.co/t/draw-date-histogram-after-with-applying-filter/238511 "2020-06-24T14:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Post date:** [June 24, 2020, 2:58pm UTC](https://discuss.elastic.co/t/draw-date-histogram-after-with-applying-filter/238511/1 "2020-06-24T14:58:47Z")

</div>

Hi,

I made a dashboard that contains a control visualization with two option lists (A and B, A is parent of B ) and a Date histogram.  
Is there any way for the histogram to "draw" the lines after I have choosen something in two option lists?

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 24, 2020, 4:54pm UTC](https://discuss.elastic.co/t/draw-date-histogram-after-with-applying-filter/238511/2 "2020-06-24T16:54:57Z")

</div>

Hello @Voula_Mikr -

Controls can be used as filters - [https://www.elastic.co/guide/en/kibana/current/for-dashboard.html](https://www.elastic.co/guide/en/kibana/current/for-dashboard.html)

Visualizations will respect filters set by controls.

---

<div class="post-metadata">

**Author:** ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Post date:** [June 26, 2020, 6:13am UTC](https://discuss.elastic.co/t/draw-date-histogram-after-with-applying-filter/238511/3 "2020-06-26T06:13:09Z")

</div>

Hi Matthew,

Thank you again for your answer.  
I have a dashboard with an option list with two options and a date histogram.  
My exact problem is that due to many data in elastic (about 1.000.000.000 documents for one index-pattern of Kibana and about 160.000 distinct values for the second option list (size)), Kibana seems to be stuck when loading the visualizations of the dashboard (too many "wait for the page to load" ).  
I am trying to find a way to limit somehow the buckets that will be returned (especially for the histogram) by making a "pre-selection".  
So select some values in two option list and when "Apply" is pressed then the aggregation request of histogram will be sent to elasticsearch.

Is there any other way to do something like that (for example put option list visualization on one "page" and go to another page with histogram when apply is pressed or something like that) ?

---

<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 24, 2020, 6:13am UTC](https://discuss.elastic.co/t/draw-date-histogram-after-with-applying-filter/238511/4 "2020-07-24T06:13:09Z")

</div>

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