# Pie chart's slice size supports only a few aggregations, but why?

**URL:** <https://discuss.elastic.co/t/pie-charts-slice-size-supports-only-a-few-aggregations-but-why/57085>\
**Category:** Kibana\
**Created:** [August 3, 2016, 9:50am UTC](https://discuss.elastic.co/t/pie-charts-slice-size-supports-only-a-few-aggregations-but-why/57085 "2016-08-03T09:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cero-t](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cero-t/32/28149_2.png) [@cero-t](https://discuss.elastic.co/u/cero-t)\
**Post date:** [August 3, 2016, 9:50am UTC](https://discuss.elastic.co/t/pie-charts-slice-size-supports-only-a-few-aggregations-but-why/57085/1 "2016-08-03T09:50:29Z")

</div>

Hello,

I'm using kibana4 & 5alpha.  
I found that I can select the pie chart's slice size only from "Count", "Sum" and "Unique count".  
I would like to use other aggregations such as Average or Percentiles and so on.  
Is it difficult to support other aggregations, or is the any workaround?

My index data are like this.

```
id,path,duration
"data1","/items",200
"data2","/items",100
"data3","/users",50
"data4","/users",80
"data5","/items",150
...

```

And when I split the slice by "Terms" aggregation of "path", the slice size must be Count (/items:3, /users:2) or Sum of duration (/items:450, /users:130) or Unique count.  
I want to make the slice size "Average" of them (/items:150, /users:65)

Thanks.

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [August 3, 2016, 1:41pm UTC](https://discuss.elastic.co/t/pie-charts-slice-size-supports-only-a-few-aggregations-but-why/57085/2 "2016-08-03T13:41:08Z")

</div>

That's a great question. I'm honestly not sure why pie charts don't support the other aggregations as well for slice sizes. I've opened an enhancement issue on GitHub, if you'd like to track it: [https://github.com/elastic/kibana/issues/7914](https://github.com/elastic/kibana/issues/7914)

I can't think of a workaround other than using another chart like a bar chart that does support average and other aggregations on the y-axis (equivalent of slice size in a pie chart).

---

<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, 1:42pm UTC](https://discuss.elastic.co/t/pie-charts-slice-size-supports-only-a-few-aggregations-but-why/57085/3 "2017-07-06T13:42:17Z")

</div>


