# Date Histogram X axis bounds

**URL:** <https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119>\
**Category:** Kibana\
**Created:** [June 28, 2017, 2:26pm UTC](https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119 "2017-06-28T14:26:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [June 28, 2017, 2:26pm UTC](https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119/1 "2017-06-28T14:26:59Z")

</div>

Hi,  
I want to compare two date histograms in a dashboard, but the data in the aggregations does not cover the same time range. How can I get a graph that is bounded to the date-filter of the whole dashboard rather than the bounding it by the data in the graph individually?  
Thanks! Dan.

---

<div class="post-metadata">

**Author:** ![dsnider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsnider/32/44068_2.png) [@dsnider](https://discuss.elastic.co/u/dsnider)\
**Post date:** [June 30, 2017, 1:58pm UTC](https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119/2 "2017-06-30T13:58:27Z")

</div>

Just to be clear on your question. You're creating two separate visualizations, then including them both on a dashboard. At that point are you adjusting the time on the dashboard to a date range that covers both of your visualizations? Or are you trying to plot them both on the same visualization?

---

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [June 30, 2017, 2:12pm UTC](https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119/3 "2017-06-30T14:12:24Z")

</div>

Hi David,  
I’m adding them to a dashboard so I can compare them side by side but without them being in the same chart.  
The problem is that both limit their time range to the first element and last element in their bucket, and not the begining/end of the date selection for the dashboard.  
Does that make sense?

I’m sure there used to be an option somewhere to set it to the range of the filter, but I can’t find it. I guess I can use the advanced JSON to modify the aggregation to also return empty buckets for the full range? I’ll get around to testing that soon…

Dan.

---

<div class="post-metadata">

**Author:** ![dsnider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsnider/32/44068_2.png) [@dsnider](https://discuss.elastic.co/u/dsnider)\
**Post date:** [June 30, 2017, 8:22pm UTC](https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119/4 "2017-06-30T20:22:02Z")

</div>

The dashboard global time should always set the time range for the visualizations. How are you setting the time range for the visualizations themselves?

---

<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 28, 2017, 8:22pm UTC](https://discuss.elastic.co/t/date-histogram-x-axis-bounds/91119/5 "2017-07-28T20:22:14Z")

</div>

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