# Pareto Chart

**URL:** <https://discuss.elastic.co/t/pareto-chart/185986>\
**Category:** Kibana\
**Created:** [June 17, 2019, 2:35am UTC](https://discuss.elastic.co/t/pareto-chart/185986 "2019-06-17T02:35:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![June](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@June](https://discuss.elastic.co/u/June)\
**Post date:** [June 17, 2019, 2:35am UTC](https://discuss.elastic.co/t/pareto-chart/185986/1 "2019-06-17T02:35:26Z")

</div>

Greetings!

Is there any possibility to create pareto chart in Kibana (v.6.5.1)?

Thank you.

---

<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:** [June 17, 2019, 4:52am UTC](https://discuss.elastic.co/t/pareto-chart/185986/2 "2019-06-17T04:52:45Z")

</div>

What's a pareto chart?

---

<div class="post-metadata">

**Author:** ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)\
**Post date:** [June 17, 2019, 1:51pm UTC](https://discuss.elastic.co/t/pareto-chart/185986/3 "2019-06-17T13:51:54Z")

</div>

I think that should be easily doable with Timelion, as you can combine a source using `.bars()` with a source using `.line()`, and you can use `.cusum()` to get a cumulative sum over time.

As a very simple sample (without any filtering, just using the count of all data):

```auto
.es(*).bars().color(green).add(200)
,.es(*).lines(steps=true,width=1).color(red).cusum().yaxis(yaxis=2,position=right)

```

---

<div class="post-metadata">

**Author:** ![June](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@June](https://discuss.elastic.co/u/June)\
**Post date:** [June 18, 2019, 1:46am UTC](https://discuss.elastic.co/t/pareto-chart/185986/4 "2019-06-18T01:46:14Z")

</div>

Hi @BennyInc @warkolm, Thanks for your replying.  
@BennyInc ,I really appreciate the suggestion and guidance given.

I would like to create a pareto chart with showing:  
**x** -axis is the **contents of a field** & **_right_ y** -axis is the **cumulative percentage**.  
For example, ![18%20June](https://us1.discourse-cdn.com/elastic/original/3X/2/4/242ea01e84f3325cacac2ed8e210413a6d2ddb2a.jpeg)

Kindly advise on the method to achieve this . Thank you.

---

<div class="post-metadata">

**Author:** ![BennyInc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bennyinc/32/21751_2.png) [@BennyInc](https://discuss.elastic.co/u/BennyInc)\
**Post date:** [June 18, 2019, 9:26am UTC](https://discuss.elastic.co/t/pareto-chart/185986/5 "2019-06-18T09:26:44Z")

</div>

Ah, that won't work with Timelion - time-based data only.  
You can try using Vega or Canvas to achieve this, but I haven't used them extensively yet.

---

<div class="post-metadata">

**Author:** ![June](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@June](https://discuss.elastic.co/u/June)\
**Post date:** [June 19, 2019, 4:50am UTC](https://discuss.elastic.co/t/pareto-chart/185986/6 "2019-06-19T04:50:16Z")

</div>

@BennyInc Thank you.

---

<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 17, 2019, 4:50am UTC](https://discuss.elastic.co/t/pareto-chart/185986/7 "2019-07-17T04:50:20Z")

</div>

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