# Create custom bucket interval

**URL:** <https://discuss.elastic.co/t/create-custom-bucket-interval/207342>\
**Category:** Kibana\
**Created:** [November 11, 2019, 11:29am UTC](https://discuss.elastic.co/t/create-custom-bucket-interval/207342 "2019-11-11T11:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maco](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@maco](https://discuss.elastic.co/u/maco)\
**Post date:** [November 11, 2019, 11:29am UTC](https://discuss.elastic.co/t/create-custom-bucket-interval/207342/1 "2019-11-11T11:29:18Z")

</div>

Hi,

Is it possible to create custom bucket interval on x-axis ? Because I'm displaying my data in area plot for 2 months but some data are not shown because my bucket interval is set 12h and some data are changing on 5h and they are not shown.

Thanks You for all answers 🙂

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 15, 2019, 9:30pm UTC](https://discuss.elastic.co/t/create-custom-bucket-interval/207342/2 "2019-11-15T21:30:26Z")

</div>

Have you tried using `Date Range` aggregation? That allows you so specify the date ranges for each bucket

---

<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 13, 2019, 9:30pm UTC](https://discuss.elastic.co/t/create-custom-bucket-interval/207342/3 "2019-12-13T21:30:27Z")

</div>

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