# Same percentage in pie

**URL:** <https://discuss.elastic.co/t/same-percentage-in-pie/232892>\
**Category:** Kibana\
**Created:** [May 16, 2020, 12:39am UTC](https://discuss.elastic.co/t/same-percentage-in-pie/232892 "2020-05-16T00:39:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)\
**Post date:** [May 16, 2020, 12:39am UTC](https://discuss.elastic.co/t/same-percentage-in-pie/232892/1 "2020-05-16T00:39:55Z")

</div>

Hi,  
I have simple pie-chart visualization.  
why it display the same percentage !!!

 ![pie](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bfee7539581eab0cce83dc67a30d169c072f7e28.png)

ps: i create an alias pattern index for this visualization.

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [May 18, 2020, 2:42pm UTC](https://discuss.elastic.co/t/same-percentage-in-pie/232892/2 "2020-05-18T14:42:41Z")

</div>

Hi @hiba --

If you're doing split slices on a terms aggregation, the pie is going to show you the number of times each unique `price` value appears in the data for your time range.

So the pie above indicates that you have the equal number of hits with prices of `1500`, `70`, and `200`. What's being visualized here is _count of documents for the time range, bucketed by unique price value_... Not what % each price represents relative to the overall sum.

What are you trying to capture in your visualization? I'm guessing there's a different way the pie could be configured to show what you are looking for.

---

<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:** [June 15, 2020, 2:55pm UTC](https://discuss.elastic.co/t/same-percentage-in-pie/232892/3 "2020-06-15T14:55:25Z")

</div>

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