# Kibana Line Graph - Cumulative

**URL:** https://discuss.elastic.co/t/kibana-line-graph-cumulative/168845
**Category:** Kibana
**Created:** [February 18, 2019, 2:06pm UTC](https://discuss.elastic.co/t/kibana-line-graph-cumulative/168845 "2019-02-18T14:06:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ek9boy](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@ek9boy](https://discuss.elastic.co/u/ek9boy)
#### Post date: [February 18, 2019, 2:06pm UTC](https://discuss.elastic.co/t/kibana-line-graph-cumulative/168845/1 "2019-02-18T14:06:50Z")

</div>

I am new to Kibana

I need to create a graph to show the two below:

A graph showing a Cumulative total of files each day (split by hour)

Also on the same graph a count of files each day (split by hour)

this should auto update and move to the next day accordingly

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [February 20, 2019, 9:21pm UTC](https://discuss.elastic.co/t/kibana-line-graph-cumulative/168845/2 "2019-02-20T21:21:14Z")

</div>

Sounds like you'll just need to use the "cumulative sum" metric for one and the "count" metric for the other:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c099d3a0b164ec5d0743ea9cee0b814f55167f1f.png)

Then, for the x-axis, you'll want to do a date histogram and select "hourly" as the interval.

---

<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: [March 20, 2019, 9:21pm UTC](https://discuss.elastic.co/t/kibana-line-graph-cumulative/168845/3 "2019-03-20T21:21:14Z")

</div>

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