# How to create a line (threshold/benchmark) to a vertical bar graph

**URL:** https://discuss.elastic.co/t/how-to-create-a-line-threshold-benchmark-to-a-vertical-bar-graph/152568
**Category:** Kibana
**Created:** [October 15, 2018, 11:10pm UTC](https://discuss.elastic.co/t/how-to-create-a-line-threshold-benchmark-to-a-vertical-bar-graph/152568 "2018-10-15T23:10:00Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [October 17, 2018, 10:45pm UTC](https://discuss.elastic.co/t/how-to-create-a-line-threshold-benchmark-to-a-vertical-bar-graph/152568/4 "2018-10-17T22:45:29Z")

</div>

Sure, if you go to management -\> index pattern -\> select index -\> and click on scripted fields

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/8/4882641de64ccafab5a5634c7ebd3f4f2a7844c1.png)

This will create a field that will always return 10. Adding it as a metric to our visualization will give us a fixed bar. Then we need to change it to a line:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/64310d8f389d531f5678f249b11c9b9fdad5870f.jpeg)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-create-a-line-threshold-benchmark-to-a-vertical-bar-graph/152568)._
