# Line visualization

**URL:** https://discuss.elastic.co/t/line-visualization/244003
**Category:** Kibana
**Created:** [August 6, 2020, 10:28am UTC](https://discuss.elastic.co/t/line-visualization/244003 "2020-08-06T10:28:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)
#### Post date: [August 6, 2020, 10:28am UTC](https://discuss.elastic.co/t/line-visualization/244003/1 "2020-08-06T10:28:18Z")

</div>

Hi ,  
I use kibana 7.7.0 how can i dislay values in a line visualization.  
for example :  
axe X : date (i can display it )  
axe Y : price ( I want to display the prices of each document as in discover , without any function like avg or sum or max ......)

any help please !

---

<div class="post-metadata">

### Author: ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)
#### Post date: [August 6, 2020, 10:40am UTC](https://discuss.elastic.co/t/line-visualization/244003/2 "2020-08-06T10:40:42Z")

</div>

I think axe X is a bucket by default auto scale. It creates buckets per 5minutes for instance.  
on axe Y are values within this 5min bucket.  
So you have to choose what value within 5min interval you want to interpret.  
You can have multiple lines (min, avg, max) so you will have the whole picture.

---

<div class="post-metadata">

### Author: ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)
#### Post date: [August 6, 2020, 10:54am UTC](https://discuss.elastic.co/t/line-visualization/244003/3 "2020-08-06T10:54:32Z")

</div>

thanks for reply,

i don't want to use min ,max or avg ...  
i juste want a simple display of the value without any function or aggregation in the axe Y

---

<div class="post-metadata">

### Author: ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)
#### Post date: [August 7, 2020, 5:31am UTC](https://discuss.elastic.co/t/line-visualization/244003/4 "2020-08-07T05:31:35Z")

</div>

What value do you want to show on axe Y if within actual time bucket you have more than 1 value.  
this is why avg/max/min is the choice.  
If you use all three and choose buckets minimum interval to the granularity of your dataset , all 3 max/min/avg will have the same value so in this case you will have you graph.  
however in case of many records Kibana automatically scales up the interval .. To see all values you shoud zoom-in.

in time series data you have allways data (per interval) so you have to do some aggregation within this interval.

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a590969e28c5b9b9e5d10a0a46155c616c073fd0.png)

---

<div class="post-metadata">

### Author: ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)
#### Post date: [August 11, 2020, 10:48am UTC](https://discuss.elastic.co/t/line-visualization/244003/5 "2020-08-11T10:48:35Z")

</div>

Hi,

this is my data:

{  
"took" : 0,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"skipped" : 0,  
"failed" : 0  
},  
"hits" : {  
"total" : {  
"value" : 4,  
"relation" : "eq"  
},  
"max\_score" : 1.0,  
"hits" : [  
{  
"\_index" : "global-status",  
"\_type" : "\_doc",  
"\_id" : "G6sF3XMB1AjoIOBx-GAQ",  
"\_score" : 1.0,  
"\_source" : {  
"date" : "2020-01-01",  
"friendly" : 381531.332,  
"travel agency" : 150140.536,  
"dealer" : 74101.27,  
"corporate" : 756.0,  
"N/C" : 9688.85,  
"local agency" : 48005.145,  
"B2B" : 612450.188,  
"B2C" : 51772.945  
}  
},  
{  
"\_index" : "global-status",  
"\_type" : "\_doc",  
"\_id" : "JqsG3XMB1AjoIOBxB2DZ",  
"\_score" : 1.0,  
"\_source" : {  
"date" : "2020-02-01",  
"friendly" : 322148.332,  
"travel agency" : 458769.536,  
"dealer" : 85476.27,  
"corporate" : 962.0,  
"N/C" : 9222.85,  
"local agency" : 75612.145,  
"B2B" : 768425.188,  
"B2C" : 51478.945  
}  
},  
{  
"\_index" : "global-status",  
"\_type" : "\_doc",  
"\_id" : "MasG3XMB1AjoIOBxFmC-",  
"\_score" : 1.0,  
"\_source" : {  
"date" : "2020-03-01",  
"friendly" : 896547.258,  
"travel agency" : 200140.694,  
"dealer" : 84796.166,  
"corporate" : 590.147,  
"N/C" : 6984.423,  
"local agency" : 95762.184,  
"B2B" : 7895126.3,  
"B2C" : 32548.433  
}  
},  
{  
"\_index" : "global-status",  
"\_type" : "\_doc",  
"\_id" : "PasG3XMB1AjoIOBxQWBl",  
"\_score" : 1.0,  
"\_source" : {  
"date" : "2020-04-01",  
"friendly" : 6958472.125,  
"travel agency" : 458632.142,  
"dealer" : 147236,  
"corporate" : 147859.0,  
"N/C" : 10000.125,  
"local agency" : 22158.147,  
"B2B" : 814256.357,  
"B2C" : 695123.143  
}  
}  
]  
}  
}

i want to display in:

- axe X "date" per month  
-axe Y the value of "B2B","travel agency","B2C", "corporate" .

---

<div class="post-metadata">

### Author: ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)
#### Post date: [August 11, 2020, 12:10pm UTC](https://discuss.elastic.co/t/line-visualization/244003/6 "2020-08-11T12:10:16Z")

</div>

![elk](https://us1.discourse-cdn.com/elastic/original/3X/3/2/325ac5d42bdf490273249d4d57a38676f1071402.png)

---

<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: [September 8, 2020, 12:10pm UTC](https://discuss.elastic.co/t/line-visualization/244003/7 "2020-09-08T12:10:21Z")

</div>

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