# Add a vertical Threshold line into a line plot

**URL:** <https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252>\
**Category:** Kibana\
**Created:** [June 23, 2020, 12:11pm UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252 "2020-06-23T12:11:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TH89](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TH89](https://discuss.elastic.co/u/TH89)\
**Post date:** [June 23, 2020, 12:11pm UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252/1 "2020-06-23T12:11:14Z")

</div>

Hallo together,  
Is there a way to print into a line plot a vertical threshold line?  
A document of me looks like this:

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

In the lineplot I print the field value on the x-Axis and the y-Axis are the Unique count of max\_value and min\_value. So I get this lineplot

 ![example_lineplot_basic](https://us1.discourse-cdn.com/elastic/original/3X/0/7/07257940c24dd92d06720656d953a359893e114b.png)

Now, my question is how I can print a vertical line e.g. in red, with the value from the field maxBorder. Therefore, I get a plot that looks like this.

 ![example_lineplot_adapted](https://us1.discourse-cdn.com/elastic/original/3X/8/5/85fb68d964b47ff82699211de77baf3c7befab41.png)

It is also possible that I have outliers that are in this example right of the red line.  
The goal is, that I can see if all unique count values under the maxBorder or not. The borderline should so high as the highest frequency of the unique count.

This are my metrics and axes options:

 ![example_metrics](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4b295dc46fe4726aa5fa1c2c533fa59fef189574.png)  
 ![example_metrics_axes](https://us1.discourse-cdn.com/elastic/original/3X/1/7/173667ea76682d50941b1eb69c1b620797db758d.png)

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 24, 2020, 4:09pm UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252/2 "2020-06-24T16:09:16Z")

</div>

Have you looked at using TSVB [https://www.elastic.co/guide/en/kibana/current/TSVB.html](https://www.elastic.co/guide/en/kibana/current/TSVB.html) ?

---

<div class="post-metadata">

**Author:** ![TH89](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TH89](https://discuss.elastic.co/u/TH89)\
**Post date:** [June 29, 2020, 7:02am UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252/3 "2020-06-29T07:02:10Z")

</div>

Hi,  
I didn`t find a way in the TSVB visualization, how I can produce my target visualization. Maybe you have a tip for me?

---

<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 27, 2020, 7:02am UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252/4 "2020-07-27T07:02:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [July 28, 2020, 2:53am UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252/5 "2020-07-28T02:53:03Z")

</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:** [November 4, 2022, 8:03am UTC](https://discuss.elastic.co/t/add-a-vertical-threshold-line-into-a-line-plot/238252/6 "2022-11-04T08:03:33Z")

</div>


