# State Timline in Kibana

**URL:** <https://discuss.elastic.co/t/state-timline-in-kibana/354923>\
**Category:** Kibana\
**Created:** [March 7, 2024, 8:48am UTC](https://discuss.elastic.co/t/state-timline-in-kibana/354923 "2024-03-07T08:48:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_Wattenbach](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/florian_wattenbach/32/132272_2.png) [@Florian\_Wattenbach](https://discuss.elastic.co/u/Florian_Wattenbach)\
**Post date:** [March 7, 2024, 8:48am UTC](https://discuss.elastic.co/t/state-timline-in-kibana/354923/1 "2024-03-07T08:48:28Z")

</div>

Hello Everyone.

Is it possible to create a state timeline in Lens such as the one which can be seen under the following picture.

 ![state_timeline_strings](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a6704c555f9c4ebf25a940df523c343f391f3db2.png)

In my index I have documents (representing each state) containing fields with the state\_name, the state\_duration (of Type Duration in ms) and the state\_start\_date (Of type date).

It would really help If somebody could show me a way of creating a visualization which shows a bar that starts at the start\_date of the state and has the length of the state\_ duration and instead of using the duration as a unit on the axis itself using state\_date. (As can be seen in the linked image)

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [March 14, 2024, 10:57am UTC](https://discuss.elastic.co/t/state-timline-in-kibana/354923/2 "2024-03-14T10:57:13Z")

</div>

Hi @Florian_Wattenbach,

Welcome! Did you try looking at the bar stacked horizontal lens control to see if it will do what you need? I've not played with the document type you have so it's difficult to say for sure.

---

<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:** [April 11, 2024, 10:57am UTC](https://discuss.elastic.co/t/state-timline-in-kibana/354923/3 "2024-04-11T10:57:31Z")

</div>

Closed on April 11, 2024, 10:57am UTC

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