# Line chart: Vizualise duration of a single event

**URL:** https://discuss.elastic.co/t/line-chart-vizualise-duration-of-a-single-event/157151
**Category:** Kibana
**Created:** [November 17, 2018, 4:54am UTC](https://discuss.elastic.co/t/line-chart-vizualise-duration-of-a-single-event/157151 "2018-11-17T04:54:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pfox](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pfox](https://discuss.elastic.co/u/pfox)
#### Post date: [November 17, 2018, 4:54am UTC](https://discuss.elastic.co/t/line-chart-vizualise-duration-of-a-single-event/157151/1 "2018-11-17T04:54:36Z")

</div>

Hello everyone,

I'm new to kibana, I apologize if my question looks dumb.

I would like to know if it was possible to draw the span of a single event in a line graph?

The event has:

- a "last\_update\_time" field that is constantly updated,
- a "creation\_time" that is, well, only set at the creation time,
- a "state" field (that is numeric)

 ![Plot%20duration](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a441dc9fff40f1ed07785496de22c62e00c98ac3.jpeg)

Thanks in advance,  
Philippe

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [November 19, 2018, 4:45pm UTC](https://discuss.elastic.co/t/line-chart-vizualise-duration-of-a-single-event/157151/2 "2018-11-19T16:45:43Z")

</div>

hi @pfox,

this might be possible with the Vega visualization in Kibana. I'm not familiar enough with the vega-language to show exactly how, but for that kind of chart should be possible using Vega markup. I'd start here [https://vega.github.io/vega/](https://vega.github.io/vega/), and then see how you can integrate it with here: [https://www.elastic.co/guide/en/kibana/current/vega-graph.html](https://www.elastic.co/guide/en/kibana/current/vega-graph.html)

---

<div class="post-metadata">

### Author: ![pfox](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pfox](https://discuss.elastic.co/u/pfox)
#### Post date: [November 19, 2018, 6:20pm UTC](https://discuss.elastic.co/t/line-chart-vizualise-duration-of-a-single-event/157151/3 "2018-11-19T18:20:18Z")

</div>

Hey @thomasneirynck,

Thank you very much for the quick answer. I'll look into the Vega visualisation documentation and see how it goes.

Thanks again.

---

<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 17, 2018, 6:20pm UTC](https://discuss.elastic.co/t/line-chart-vizualise-duration-of-a-single-event/157151/4 "2018-12-17T18:20:20Z")

</div>

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