# \[Pie Chart\] Split Slices based on value of respective fields

**URL:** <https://discuss.elastic.co/t/pie-chart-split-slices-based-on-value-of-respective-fields/98041>\
**Category:** Kibana\
**Created:** [August 23, 2017, 9:43am UTC](https://discuss.elastic.co/t/pie-chart-split-slices-based-on-value-of-respective-fields/98041 "2017-08-23T09:43:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapoorabhishek24](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kapoorabhishek24/32/21403_2.png) [@kapoorabhishek24](https://discuss.elastic.co/u/kapoorabhishek24)\
**Post date:** [August 23, 2017, 9:43am UTC](https://discuss.elastic.co/t/pie-chart-split-slices-based-on-value-of-respective-fields/98041/1 "2017-08-23T09:43:34Z")

</div>

Hi, I am trying a visualization (Pie Chart) to show Disk Usage of a machine.

The fields that I have are: **Total and Available** , of the number type.  
Eg: Total: 290, Available: 210.

I want to depict this on a pie chart, I found out that Kibana Pie Chart doesn't support aggregations other than Count, Unique Count and Sum. Is there a workaround by which I could show this information on a pie chart? Like does it supports splitting slices based on values of a field?

Thanks  
A

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [August 23, 2017, 5:36pm UTC](https://discuss.elastic.co/t/pie-chart-split-slices-based-on-value-of-respective-fields/98041/2 "2017-08-23T17:36:55Z")

</div>

You could use a scripted field to calculate the difference between the two values and show the remaining space. But I can't think of a way to aggregate and show the two values from the same set of document on a single chart like that.

---

<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:** [September 20, 2017, 5:37pm UTC](https://discuss.elastic.co/t/pie-chart-split-slices-based-on-value-of-respective-fields/98041/3 "2017-09-20T17:37:23Z")

</div>

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