# Display the X line on graph

**URL:** <https://discuss.elastic.co/t/display-the-x-line-on-graph/165002>\
**Category:** Kibana\
**Created:** [January 21, 2019, 8:18am UTC](https://discuss.elastic.co/t/display-the-x-line-on-graph/165002 "2019-01-21T08:18:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![f24b83985b804d90965e](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@f24b83985b804d90965e](https://discuss.elastic.co/u/f24b83985b804d90965e)\
**Post date:** [January 21, 2019, 8:18am UTC](https://discuss.elastic.co/t/display-the-x-line-on-graph/165002/1 "2019-01-21T08:18:47Z")

</div>

I want to draw the line on graph. such as Maximum, minimum, average, limit  
I trying to "index patterns" -\> "scripted fields" on kibana.  
I added scripted fields like  
doc['ActTemp'].max()  
or  
doc['ActTemp'].max.

then discover page shown up error.  
and i cannot add scripted fields on visualize graph.  
and they ask me limit can be change.

please help

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 21, 2019, 4:15pm UTC](https://discuss.elastic.co/t/display-the-x-line-on-graph/165002/2 "2019-01-21T16:15:17Z")

</div>

You cannot add any lines in Discover. For getting metrics like max, min, average, etc you need to use one of the Line Charts, Bar Charts or Area Charts. You can have as many metrics as you'd like in that chart.  
If you want to have this chart and the list of documents on the same page, simply save the search in discover, create a dashboard and add both the saved search and the chart in the same dashboard.

---

<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 18, 2019, 4:15pm UTC](https://discuss.elastic.co/t/display-the-x-line-on-graph/165002/3 "2019-02-18T16:15:17Z")

</div>

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