# Which visualisation type is best 2 layer histogram with time offset?

**URL:** <https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574>\
**Category:** Kibana\
**Created:** [September 16, 2022, 12:45pm UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574 "2022-09-16T12:45:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [September 16, 2022, 12:45pm UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/1 "2022-09-16T12:45:32Z")

</div>

Hi,

I want to create a time based histogram visualization which shows two lines. Some performance curves like processing time.

For that processing time I want to have two lines. One for the current time window and one with an offset which shows the graph for e.g. 1 week ago. So I can easily check if something changed.

And to be precise, in the end I need a dashboard with mutliple visualisations for comparing different graphs. And I want to be able to switch the offset for all visualizations within the dashboard at once.

Which is the best visualization type to do this?

In my old project I did it with timelion and wrapped it in an ugly java script page where I was able to set the offset. This javascript wrapper page was building the dashboard with multiple timelion visualizations, all url encoded. But that was Kibana 6.x, about 4 years ago. Hopefully there is now an easier way ,-)

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [September 19, 2022, 1:17pm UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/2 "2022-09-19T13:17:35Z")

</div>

Hi Andreas,

Lens is the preferred way to create visualizations in the latest versions of Kibana. Lens can also apply an offset. [Check out this example in the documentation.](https://www.elastic.co/guide/en/kibana/current/create-a-dashboard-of-panels-with-ecommerce-data.html#compare-time-ranges)

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [October 11, 2022, 3:48pm UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/3 "2022-10-11T15:48:48Z")

</div>

thanks for the answer.

Let's say I have a dashboard with 3 lens visualizations. I want to change the offset on demand for all visualizations at once.  
I noticed that I can change the offset by visualization via **customize time range** when viewing a dashboard:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e2da0424746c6fe7890485ad418a95b583a2c632.png)

But is there a way to change the time offset for all lens visualizations shown on the dashboard at once?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [October 12, 2022, 1:00pm UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/4 "2022-10-12T13:00:26Z")

</div>

The time shift/offset declared in Lens is relative, so changing the time range in your dashboard will move also the shifts in each panel.

---

<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:** [November 9, 2022, 10:38am UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/5 "2022-11-09T10:38:55Z")

</div>



---

<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 7, 2022, 7:25am UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/6 "2022-12-07T07:25:17Z")

</div>



---

<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:** [January 4, 2023, 3:54am UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/7 "2023-01-04T03:54:48Z")

</div>



---

<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 1, 2023, 3:55am UTC](https://discuss.elastic.co/t/which-visualisation-type-is-best-2-layer-histogram-with-time-offset/314574/8 "2023-02-01T03:55:05Z")

</div>

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