# How to show Pie chart?

**URL:** <https://discuss.elastic.co/t/how-to-show-pie-chart/215562>\
**Category:** Kibana\
**Created:** [January 18, 2020, 1:51pm UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562 "2020-01-18T13:51:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![volcano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volcano/32/46287_2.png) [@volcano](https://discuss.elastic.co/u/volcano)\
**Post date:** [January 18, 2020, 1:51pm UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562/1 "2020-01-18T13:51:31Z")

</div>

I have a search query which shows records as

Slow-Speed  
High-Speed  
High-Speed  
High-Speed  
High-Speed  
Slow-Speed  
Slow-Speed

I want to create a pie chart Slow-Speed vs High-Speed. How to do this?

I tried this way, I looked into Add Visualization and then selected the saved query  
How do I plot now Slow-Speed vs High-Speed pie chart. I am stuck at this part.

shall I choose split rows , terms , add subbuckets ? I'm confused at this part. I need some help at this part.

Could you please tell what is the correct way to plot the pie chart ?

---

<div class="post-metadata">

**Author:** ![kiyapedia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kiyapedia](https://discuss.elastic.co/u/kiyapedia)\
**Post date:** [January 18, 2020, 3:07pm UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562/2 "2020-01-18T15:07:00Z")

</div>

Hello @volcano —

If im understanding correctly, you want to create a pie chart to compare between `Slow-Speed vs High-Speed`. To accomplish this, you will need to:

1. Go to Visualize
2. Add visualization
3. Select Pie
4. Select `Split Slices` under the Buckets section
5. Select `Terms` under `Aggregations
6. Then under the `Field` section, select the correct field that contains the values of `Slow-Speed` and `High-Speed.
7. Click on the play button

You will now have a Pie chart that shows `Slow-Speed vs High-Speed`. If your Pie chart defaulted to a `Donut` shape, you can change this under options.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![volcano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volcano/32/46287_2.png) [@volcano](https://discuss.elastic.co/u/volcano)\
**Post date:** [January 19, 2020, 4:20am UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562/3 "2020-01-19T04:20:57Z")

</div>

> [@kiyapedia](#):
>
> - Then under the `Field` section, **select the correct field** that contains the values of `Slow-Speed` and `High-Speed.

How do I select multiple fields?

select support only one field ..right?

---

<div class="post-metadata">

**Author:** ![kiyapedia](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kiyapedia](https://discuss.elastic.co/u/kiyapedia)\
**Post date:** [January 19, 2020, 4:25am UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562/4 "2020-01-19T04:25:39Z")

</div>

If the two values are coming in from different fields, I suggest selecting `Filters` under aggregations and specifying each one. So first filter would be `your_field: Slow-Speed` and your next filter would be `your_field: High-Speed`

Let me know if that makes sense!

---

<div class="post-metadata">

**Author:** ![volcano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/volcano/32/46287_2.png) [@volcano](https://discuss.elastic.co/u/volcano)\
**Post date:** [January 19, 2020, 4:34am UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562/5 "2020-01-19T04:34:22Z")

</div>

okay. Will test this.

---

<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:** [February 16, 2020, 4:34am UTC](https://discuss.elastic.co/t/how-to-show-pie-chart/215562/6 "2020-02-16T04:34:24Z")

</div>

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