# Timelion visualization wrongfully shifting the date buckets by the interval specified

**URL:** <https://discuss.elastic.co/t/timelion-visualization-wrongfully-shifting-the-date-buckets-by-the-interval-specified/235164>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [June 1, 2020, 12:44pm UTC](https://discuss.elastic.co/t/timelion-visualization-wrongfully-shifting-the-date-buckets-by-the-interval-specified/235164 "2020-06-01T12:44:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vardan](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vardan](https://discuss.elastic.co/u/vardan)\
**Post date:** [June 1, 2020, 12:44pm UTC](https://discuss.elastic.co/t/timelion-visualization-wrongfully-shifting-the-date-buckets-by-the-interval-specified/235164/1 "2020-06-01T12:44:47Z")

</div>

Hello,

I am working with Kibana version 7.6.1. I am using Timelion visualization in order to display the desired statistics. While visualizing I observed that the graph appears in the previous date bucket.

For eg. : If I give 1 hour interval, the whole graph is shifted by 1 hour prior to actual bucket and if I give 1 day interval, it gets shifted by 1d i.e. no matter what interval I give it appears to be in previous bucket.

Please find below the indexed data statistics.

 ![Discover_TimelionBug](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ffaac12a30810e8bbd3680ec85f0749b3c4a74c1.png)

We can observe that the first document is indexed at May 25, 2020, 05:33.

Please find below the timelion visualization.

 ![TImelion Bug](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0ecab0a47ef5381cedbb71c8fe493d434b6e5d87.png)

We can observe that the bucket is shifted one hour prior (which is my interval).

Could you please help me with this.

Regards  
Vardan Kumar

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 4, 2020, 8:26am UTC](https://discuss.elastic.co/t/timelion-visualization-wrongfully-shifting-the-date-buckets-by-the-interval-specified/235164/2 "2020-06-04T08:26:34Z")

</div>

Hi @vardan unfortunately this is a known bug: [https://github.com/elastic/kibana/issues/45620](https://github.com/elastic/kibana/issues/45620)  
If you need to compute the sum of `cache.Hits` you can also use the standard line chart available in Visualize.

---

<div class="post-metadata">

**Author:** ![vardan](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vardan](https://discuss.elastic.co/u/vardan)\
**Post date:** [June 4, 2020, 10:48am UTC](https://discuss.elastic.co/t/timelion-visualization-wrongfully-shifting-the-date-buckets-by-the-interval-specified/235164/3 "2020-06-04T10:48:03Z")

</div>

Hi @markov00, Thank you so much for the response! 🙂

Actually in order to explain my issue, I just narrowed my case down. I want to view multiple graphs using multiple fields from corresponding elasticsearch documents with various calculations in one visualization and Timelion seems the best fit for this purpose. Moreover a lot of our design for our statistics visualization relies on Timelion. I just hope this issue is resolved by ELK team very soon. 🤞

---

<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 2, 2020, 10:48am UTC](https://discuss.elastic.co/t/timelion-visualization-wrongfully-shifting-the-date-buckets-by-the-interval-specified/235164/4 "2020-07-02T10:48:06Z")

</div>

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