# Reference line - can it vary over time?

**URL:** <https://discuss.elastic.co/t/reference-line-can-it-vary-over-time/321226>\
**Category:** Kibana\
**Created:** [December 14, 2022, 2:08pm UTC](https://discuss.elastic.co/t/reference-line-can-it-vary-over-time/321226 "2022-12-14T14:08:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinrik](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tinrik](https://discuss.elastic.co/u/tinrik)\
**Post date:** [December 14, 2022, 2:08pm UTC](https://discuss.elastic.co/t/reference-line-can-it-vary-over-time/321226/1 "2022-12-14T14:08:42Z")

</div>

Hi!

I'm following the [tutorial](https://www.youtube.com/watch?v=blLhhPYy70w) on how to add a reference line. It looks great and exactly what I'm looking for.

However I need to have the reference line be different at different points in time. For example at t = 0 the line could have value 100, at t = 1, value 50, t = 2 value 20, and so on. Instead of a fixed horizontal line at value X.

Is it possible to accomplish this with reference line? I could do this with a regular line instead, but in that case I cannot change the properties of the line (thickness, style), so it would be very hard to distinguish from the actual data (which are also lines 🙂 )

Thanks!

---

<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:** [December 14, 2022, 3:36pm UTC](https://discuss.elastic.co/t/reference-line-can-it-vary-over-time/321226/2 "2022-12-14T15:36:24Z")

</div>

Hi @tinrik

not at the moment, reference lines are constant values.  
A stacked line will be the route I would suggest. For more styling control over chart lines you can track this issue: [[Lens] Line chart styling controls · Issue #124279 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/124279)

---

<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 11, 2023, 3:30pm UTC](https://discuss.elastic.co/t/reference-line-can-it-vary-over-time/321226/3 "2023-01-11T15:30:34Z")

</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 8, 2023, 3:31pm UTC](https://discuss.elastic.co/t/reference-line-can-it-vary-over-time/321226/4 "2023-02-08T15:31:21Z")

</div>

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