# How to add several test results in the same pie in kibana

**URL:** <https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021>\
**Category:** Kibana\
**Created:** [February 12, 2020, 3:10pm UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021 "2020-02-12T15:10:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![josemiguellopez](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@josemiguellopez](https://discuss.elastic.co/u/josemiguellopez)\
**Post date:** [February 12, 2020, 3:10pm UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/1 "2020-02-12T15:10:18Z")

</div>

Hi friends, I have a question with Kibana, is it possible to add several test results to a cake? since at the time of doing so it generates 3 cakes

 ![pie](https://us1.discourse-cdn.com/elastic/original/3X/8/7/87a21fd7ea99c7be74fbba3c3a568cbd293f4fe7.png)

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 12, 2020, 5:11pm UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/2 "2020-02-12T17:11:05Z")

</div>

Can you clarify how your data looks like and what kind of visualization you want to see?

---

<div class="post-metadata">

**Author:** ![josemiguellopez](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@josemiguellopez](https://discuss.elastic.co/u/josemiguellopez)\
**Post date:** [February 12, 2020, 6:45pm UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/3 "2020-02-12T18:45:04Z")

</div>

Hi Flash1293, thanks for your prompt response.

attached image where the data I want to join in a single graphic is displayed

 ![Screenshot_2020-02-12 Discover - Kibana](https://us1.discourse-cdn.com/elastic/original/3X/a/c/ace50f5352b6feb4fbbefdd28f076e8ac37db529.png)

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 12, 2020, 6:53pm UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/4 "2020-02-12T18:53:11Z")

</div>

Could you just post a man example document as json with the relevant fields? And how do you want the chart to look like?

---

<div class="post-metadata">

**Author:** ![josemiguellopez](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@josemiguellopez](https://discuss.elastic.co/u/josemiguellopez)\
**Post date:** [February 12, 2020, 7:40pm UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/5 "2020-02-12T19:40:34Z")

</div>

the graph should look according to the following image

 ![PIE](https://us1.discourse-cdn.com/elastic/original/3X/9/4/946d9f84618381a2333bcbba75990aff87e7c85e.png)

according to the data marked e red of the image attached in the other post

 ![Screenshot_2020-02-12 Discover - Kibana](https://us1.discourse-cdn.com/elastic/original/3X/a/c/ace50f5352b6feb4fbbefdd28f076e8ac37db529.png)

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 13, 2020, 10:23am UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/6 "2020-02-13T10:23:20Z")

</div>

I see, thanks for the explanation. The way pie charts work today in Kibana do not support this, as you can only use a single metric for the angles of the slices, not three different ones.

If you have control over your data, consider splitting up your documents into separate ones.

Instead of

```auto
{ failureCount: 3, successCount: 3 }

```

you would have

```auto
{ type: 'failure', count: 3 },
{ type: 'success', count: 3 }

```

Now you can split the slices by type and use sum of count as the metric.

However I would not recommend this. What about a vertical bar chart showing the same information? You can add three metrics there (which will be shown as three separate bars). In most cases a bar chart does a better job in presenting the same information.

---

<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:** [March 12, 2020, 10:23am UTC](https://discuss.elastic.co/t/how-to-add-several-test-results-in-the-same-pie-in-kibana/219021/7 "2020-03-12T10:23:23Z")

</div>

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