# Issue in generating line graph

**URL:** <https://discuss.elastic.co/t/issue-in-generating-line-graph/98958>\
**Category:** Kibana\
**Created:** [August 31, 2017, 7:30am UTC](https://discuss.elastic.co/t/issue-in-generating-line-graph/98958 "2017-08-31T07:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitra](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chaitra](https://discuss.elastic.co/u/chaitra)\
**Post date:** [August 31, 2017, 7:30am UTC](https://discuss.elastic.co/t/issue-in-generating-line-graph/98958/1 "2017-08-31T07:30:01Z")

</div>

Hi All,

I needed help in plotting a line graph for a field called @threads.  
Threads are basically the number of Virtual users who have executed a particular application.

For example, there might be 10 entries in the log for an application from 10 different sources.

1. @threads=20  
2)@threads= 10  
3)@threads =5

and so on.

So i need a graph, where X axis are the dates, and y axis is the threads... 20,10,5.

But when am trying, its giving option of sum, count , average ,min,max... aggregation and thats not what i am looking for.

Is there a way to do this? Please help.

---

<div class="post-metadata">

**Author:** ![TimWard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timward/32/19574_2.png) [@TimWard](https://discuss.elastic.co/u/TimWard)\
**Post date:** [August 31, 2017, 8:01am UTC](https://discuss.elastic.co/t/issue-in-generating-line-graph/98958/2 "2017-08-31T08:01:30Z")

</div>

What if there are several documents that fall within a time bucket? - you have to choose min, average, max depending on what you want it to do in such cases. For example for resource usage metrics I choose "max" so that the graph shows the worst case for any time bucket.

---

<div class="post-metadata">

**Author:** ![chaitra](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chaitra](https://discuss.elastic.co/u/chaitra)\
**Post date:** [August 31, 2017, 8:50am UTC](https://discuss.elastic.co/t/issue-in-generating-line-graph/98958/3 "2017-08-31T08:50:34Z")

</div>

The criteria is i want to just plot the all the entries from the log.  
If there are 5 entries per day , for a week. I would want the timings on X axis and all the user entry on Y. so totally 35 entries.

---

<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 28, 2017, 8:50am UTC](https://discuss.elastic.co/t/issue-in-generating-line-graph/98958/4 "2017-09-28T08:50:40Z")

</div>

Closed on September 28, 2017, 8:50am UTC

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