# Kibana4: Add 'other' slice to pie chart using sum\_other\_doc\_count

**URL:** <https://discuss.elastic.co/t/kibana4-add-other-slice-to-pie-chart-using-sum-other-doc-count/1347>\
**Category:** Kibana\
**Created:** [May 26, 2015, 11:21pm UTC](https://discuss.elastic.co/t/kibana4-add-other-slice-to-pie-chart-using-sum-other-doc-count/1347 "2015-05-26T23:21:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sesha\_Narahari](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Sesha\_Narahari](https://discuss.elastic.co/u/Sesha_Narahari)\
**Post date:** [May 26, 2015, 11:21pm UTC](https://discuss.elastic.co/t/kibana4-add-other-slice-to-pie-chart-using-sum-other-doc-count/1347/1 "2015-05-26T23:21:10Z")

</div>

I getthis field in the query results. Can I see an example of how to use this in a pie chart? JSON input? Scripted field?

--

```
"aggregations": {
    "2": {
      "doc_count_error_upper_bound": 520,
      "sum_other_doc_count": 146846,
      "buckets": [
        {
          "key": "10.8.21.9",
          "doc_count": 14690
        },
```

* * *

---

<div class="post-metadata">

**Author:** ![Pieter\_Agenbag](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pieter_agenbag/32/4562_2.png) [@Pieter\_Agenbag](https://discuss.elastic.co/u/Pieter_Agenbag)\
**Post date:** [May 28, 2015, 7:45am UTC](https://discuss.elastic.co/t/kibana4-add-other-slice-to-pie-chart-using-sum-other-doc-count/1347/2 "2015-05-28T07:45:49Z")

</div>

+1

Kibana 3 used to have a checkbox to include "Other" (and/or "Missing") values as well , which I suppose is slightly different from just the number of other documents.

Can we please have this feature back.

---

<div class="post-metadata">

**Author:** ![Sesha\_Narahari](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Sesha\_Narahari](https://discuss.elastic.co/u/Sesha_Narahari)\
**Post date:** [June 2, 2015, 9:55pm UTC](https://discuss.elastic.co/t/kibana4-add-other-slice-to-pie-chart-using-sum-other-doc-count/1347/3 "2015-06-02T21:55:57Z")

</div>

We are porting K4 visualizations back to K3. The "other" slice is critical for management. Any hope on this feature making it into K4 or a workaround?

---

<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, 2:18pm UTC](https://discuss.elastic.co/t/kibana4-add-other-slice-to-pie-chart-using-sum-other-doc-count/1347/4 "2017-07-06T14:18:40Z")

</div>


