# Line chart data problem

**URL:** https://discuss.elastic.co/t/line-chart-data-problem/158063
**Category:** Kibana
**Created:** [November 24, 2018, 11:47am UTC](https://discuss.elastic.co/t/line-chart-data-problem/158063 "2018-11-24T11:47:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![developer\_nextaqua](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@developer\_nextaqua](https://discuss.elastic.co/u/developer_nextaqua)
#### Post date: [November 24, 2018, 11:47am UTC](https://discuss.elastic.co/t/line-chart-data-problem/158063/1 "2018-11-24T11:47:33Z")

</div>

{  
"\_index": "c3b9c3185925\_d2f4e63c26c7\_1",  
"\_type": "aerator",  
"\_id": "1542985469",  
"\_version": 1,  
"\_score": 1,  
"\_source": {  
"timeStamp": "20:32:06 23-11-18",  
"deviceType": 11,  
"powerStatus": 0,  
"nodeMacId": "d2f4e63c26c7",  
"ReasonForPacket": "T",  
"indi": "L1",  
"gatewayId": "c3b9c3185925",  
"epochTime": "1542985326",  
"indi\_value": 7.19,  
"elasticTimeStamp": "20:34:29 23-11-18"  
}  
}

I want timestamp on x axis and indi\_value value on y axis.how can I do this in line art visualization.

I want all document values to be plotted on graph.And my timestamp type is string and indi\_value is number is that okay.

 ![35%20PM](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74eaa8a94a6985323a0ab249f0325f963fd0d57e.png)

---

<div class="post-metadata">

### Author: ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)
#### Post date: [November 26, 2018, 9:04pm UTC](https://discuss.elastic.co/t/line-chart-data-problem/158063/2 "2018-11-26T21:04:19Z")

</div>

Kibana visualizations don't use individual document values, they always show an aggregation of your data. If you put a date histogram on the x-axis it creates buckets with a set time interval. The value on the y-axis must some how combine all the documents that fall into each bucket. You can do this with various metric aggregations like `min`, `max`, `avg`, `sum`. The closest you can get to graphing individual values is using the `top hit` metric which can select an individual document from each bucket, but then you're ignoring all the other values in that bucket.

---

<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: [December 24, 2018, 9:04pm UTC](https://discuss.elastic.co/t/line-chart-data-problem/158063/3 "2018-12-24T21:04:22Z")

</div>

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