# Add static line for Horizontal bar chart

**URL:** https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338
**Category:** Kibana
**Created:** [January 27, 2021, 8:33am UTC](https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338 "2021-01-27T08:33:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pavank](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pavank](https://discuss.elastic.co/u/pavank)
#### Post date: [January 27, 2021, 8:33am UTC](https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338/1 "2021-01-27T08:33:57Z")

</div>

Kibana version 6.7  
We are trying to create a dashboard with a horizontal bar based on a field named **duration** of type **number**. We want to add a static line to show the Threshold of sorts for the entire series.  
We followed this [blog](https://discuss.elastic.co/t/how-to-create-a-line-threshold-benchmark-to-a-vertical-bar-graph/152568/4) and this [blog](https://github.com/elastic/kibana/issues/5037) and created a scripted field with a value 10 and used it in my Y axis aggregation. Adding screenshots of my visualization settings.  
We end up with a dot as our Threshold line in our graph instead of a line (as attached).  
How do I draw a line across the entire series as marked in the screenshot?

 ![Horizontal bar output](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c00f67d10d11bfc9671dfad2937a9d2a4818a9b.jpeg) ![Horizontal bar - Metrics and axes](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9ded59a06ee8d935f5b6f724d1ea2894b5a4c685.jpeg) ![Horizontal bar - X axis settings](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91e0665e61d530683c875e9c13d54ebc55930e8d.jpeg) ![Horizontal bar - Y axis settings](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f3f9fc00a51bcba20f7bcc55ffbeec9bfa997b75.jpeg)

Please let me know if any other details are needed.

Thanks  
Pavan

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [February 2, 2021, 7:25am UTC](https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338/2 "2021-02-02T07:25:19Z")

</div>

Hi @pavank

You could do that using the **Threshold line** in **Panel settings**

 ![Bildschirmfoto 2021-02-02 um 08.23.48](https://us1.discourse-cdn.com/elastic/original/3X/e/b/eb51b142bf806ebec92a20df67795e2c7bec020b.png)

Hope this helps,  
Best,  
Matthias

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [February 2, 2021, 7:27am UTC](https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338/3 "2021-02-02T07:27:19Z")

</div>

ah sorry, you need 7.4 for it.

In 6.8 this might be possible using the Vega visualization:

> **[Vega Graphs | Kibana Guide \[6.8\] | Elastic](https://www.elastic.co/guide/en/kibana/6.8/vega-graph.html)**

---

<div class="post-metadata">

### Author: ![pavank](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pavank](https://discuss.elastic.co/u/pavank)
#### Post date: [February 2, 2021, 10:18am UTC](https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338/4 "2021-02-02T10:18:03Z")

</div>

Thank you Matt for this update.  
I will try this out in the higher version of Kibana

Regards,  
Pavan

---

<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: [March 2, 2021, 10:18am UTC](https://discuss.elastic.co/t/add-static-line-for-horizontal-bar-chart/262338/5 "2021-03-02T10:18:57Z")

</div>

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