# Plotting Cumulative Distribution Function over Kibana

**URL:** <https://discuss.elastic.co/t/plotting-cumulative-distribution-function-over-kibana/93274>\
**Category:** Kibana\
**Created:** [July 15, 2017, 7:25pm UTC](https://discuss.elastic.co/t/plotting-cumulative-distribution-function-over-kibana/93274 "2017-07-15T19:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Gupta](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Sachin\_Gupta](https://discuss.elastic.co/u/Sachin_Gupta)\
**Post date:** [July 15, 2017, 7:25pm UTC](https://discuss.elastic.co/t/plotting-cumulative-distribution-function-over-kibana/93274/1 "2017-07-15T19:25:05Z")

</div>

Hi All,

We need to plot the KPI as Cumulative Distribution Function. We could fine 2 alternative but stuck at step. Please help  
Alternative 1 : Plot Cumulative Sum and then chose Custom Metrics with Aggregation method as Unique count. This plot the unique count values in cumulative order. Now, We need to divide this unique count by total count to have Cumulative distribution in %. Can you please help how we can divide with total count of records in the chart.  
Alternative 2: Have custom plugin to directly plot the values in the charts with cumulative distribution.  
Can anyone share the plugin if they have developed ?

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [July 17, 2017, 7:29am UTC](https://discuss.elastic.co/t/plotting-cumulative-distribution-function-over-kibana/93274/2 "2017-07-17T07:29:58Z")

</div>

you could try to use time series visual builder (available in kibana 5.4) and `calculation` aggregation, to do something like you describe in alternative 1.

---

<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:** [August 14, 2017, 7:30am UTC](https://discuss.elastic.co/t/plotting-cumulative-distribution-function-over-kibana/93274/3 "2017-08-14T07:30:17Z")

</div>

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