# Create a cumulative graph in Kibana by using the sum of the document count

**URL:** <https://discuss.elastic.co/t/create-a-cumulative-graph-in-kibana-by-using-the-sum-of-the-document-count/31418>\
**Category:** Kibana\
**Created:** [September 30, 2015, 3:05pm UTC](https://discuss.elastic.co/t/create-a-cumulative-graph-in-kibana-by-using-the-sum-of-the-document-count/31418 "2015-09-30T15:05:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hougvw](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hougvw](https://discuss.elastic.co/u/hougvw)\
**Post date:** [September 30, 2015, 3:05pm UTC](https://discuss.elastic.co/t/create-a-cumulative-graph-in-kibana-by-using-the-sum-of-the-document-count/31418/1 "2015-09-30T15:05:32Z")

</div>

Hi,

Is it possible to create a cumulative line graph using the document count that is returned for a search. This is already aggregated by date so I was wondering if you can just sum up the count somehow and then create a cumulated line graph. I see there is a new cumulative aggregate feature that was has been added to elasticsearch but this seem to cumulate a field such as sales. I just want to graph the document count as they were added.

Regards

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 30, 2015, 3:08pm UTC](https://discuss.elastic.co/t/create-a-cumulative-graph-in-kibana-by-using-the-sum-of-the-document-count/31418/2 "2015-09-30T15:08:17Z")

</div>

I think stuff like this will be available soon, the pipeline aggs in ES 2.0 will allow it so KB just needs to implement it.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [October 6, 2015, 3:49am UTC](https://discuss.elastic.co/t/create-a-cumulative-graph-in-kibana-by-using-the-sum-of-the-document-count/31418/3 "2015-10-06T03:49:01Z")

</div>

We're tracking this request here in Kibana, feel free to +1 if it's important to you:

> <https://github.com/elastic/kibana/issues/740>

---

<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:** [July 6, 2017, 2:11pm UTC](https://discuss.elastic.co/t/create-a-cumulative-graph-in-kibana-by-using-the-sum-of-the-document-count/31418/4 "2017-07-06T14:11:56Z")

</div>


