# Problem with an implementation on my array in a Pie Chart

**URL:** <https://discuss.elastic.co/t/problem-with-an-implementation-on-my-array-in-a-pie-chart/311145>\
**Category:** Kibana\
**Created:** [August 1, 2022, 4:35pm UTC](https://discuss.elastic.co/t/problem-with-an-implementation-on-my-array-in-a-pie-chart/311145 "2022-08-01T16:35:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave23/32/109114_2.png) [@Dave23](https://discuss.elastic.co/u/Dave23)\
**Post date:** [August 1, 2022, 4:35pm UTC](https://discuss.elastic.co/t/problem-with-an-implementation-on-my-array-in-a-pie-chart/311145/1 "2022-08-01T16:35:37Z")

</div>

Hello everyone, I have the following array and I want to make a pie chart with each of the "holders.address" and the "amount" of each of them, but I can't get that information, I don't know what calculation field to use for that I extract the information inside the pie chart and I need the last value in there.  
Could you help me with this problem?

Thank you very much in advance.

 ![holders.discover. pie chart](https://us1.discourse-cdn.com/elastic/original/3X/4/6/462152db1c5ad5804e88c24e34de39d588753f1f.png)  
 ![Holders.discovery capture](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f35714b2888be5bb25cf6f9bca14621b0ca919ea.png)  
 ![Holders.pie chart problem](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc8ce7338b407ecda8eeb9f1d58a23dad19d1de8.png)

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 12, 2022, 10:16pm UTC](https://discuss.elastic.co/t/problem-with-an-implementation-on-my-array-in-a-pie-chart/311145/2 "2022-08-12T22:16:19Z")

</div>

Sadly that won't work with the way your data is structured. Kibana expect something similar to an address-centric document, something like:  
{  
address: 0x13413512...;  
wallet: 0x11253123521431...;  
amount: 0.05  
}  
Then you could do a filter by the wallet name and a pie chart split on address with the amount being the slice size.

---

<div class="post-metadata">

**Author:** ![Dave23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave23/32/109114_2.png) [@Dave23](https://discuss.elastic.co/u/Dave23)\
**Post date:** [August 16, 2022, 1:33pm UTC](https://discuss.elastic.co/t/problem-with-an-implementation-on-my-array-in-a-pie-chart/311145/3 "2022-08-16T13:33:30Z")

</div>

Okey thank you.

---

<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 13, 2022, 1:34pm UTC](https://discuss.elastic.co/t/problem-with-an-implementation-on-my-array-in-a-pie-chart/311145/4 "2022-09-13T13:34:17Z")

</div>

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