# Align date histogram to 6:00 instead of 0:00

**URL:** <https://discuss.elastic.co/t/align-date-histogram-to-6-00-instead-of-0-00/351436>\
**Category:** Kibana\
**Created:** [January 19, 2024, 11:41am UTC](https://discuss.elastic.co/t/align-date-histogram-to-6-00-instead-of-0-00/351436 "2024-01-19T11:41:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allatrue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allatrue/32/130067_2.png) [@allatrue](https://discuss.elastic.co/u/allatrue)\
**Post date:** [January 19, 2024, 11:41am UTC](https://discuss.elastic.co/t/align-date-histogram-to-6-00-instead-of-0-00/351436/1 "2024-01-19T11:41:27Z")

</div>

Hello all!

I'm trying to create a bar chart in Lens. It should aggregate some metrics using 8h buckets and use starting point at 6:00/14:00/22:00. I configured date histogram for horizontal axis, set minimum interval to 8h and selected a field, which contains a timestamp of bucket start. This timestamp has always one of the values 6:00/14:00/22:00.  
But Kibana still creates buckets for 0:00/8:00/16:00.

Is there a way to make Kibana to use time offset for date buckets or just folow the values in the date field?

Thanks.  
Regards.

---

<div class="post-metadata">

**Author:** ![allatrue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allatrue/32/130067_2.png) [@allatrue](https://discuss.elastic.co/u/allatrue)\
**Post date:** [January 23, 2024, 9:48pm UTC](https://discuss.elastic.co/t/align-date-histogram-to-6-00-instead-of-0-00/351436/2 "2024-01-23T21:48:23Z")

</div>

It looks like, I cannot use offset parameter in Lens, but it works fine in aggregation-based editor using advanced JSON field. If I convert panel to Lens the offset is getting lost and the chart is broken.  
For the current use case I can work with aggregation based editor, but it would be interesting to know, if it's known and desired behaviour.

Thanks

---

<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:** [February 20, 2024, 9:48pm UTC](https://discuss.elastic.co/t/align-date-histogram-to-6-00-instead-of-0-00/351436/3 "2024-02-20T21:48:47Z")

</div>

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