# Pie chart from array

**URL:** https://discuss.elastic.co/t/pie-chart-from-array/107266
**Category:** Kibana
**Created:** [November 11, 2017, 7:24am UTC](https://discuss.elastic.co/t/pie-chart-from-array/107266 "2017-11-11T07:24:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wkpv68](https://avatars.discourse-cdn.com/v4/letter/w/73ab20/32.png) [@wkpv68](https://discuss.elastic.co/u/wkpv68)
#### Post date: [November 11, 2017, 7:24am UTC](https://discuss.elastic.co/t/pie-chart-from-array/107266/1 "2017-11-11T07:24:20Z")

</div>

Hi,

I want to create Pie chart from jsonarray.  
I have json array with value and percent.  
For example:  
[{X,20},{y,50},{z,30}]  
The number of object is dynamic (it can be 20 value) but in total all sum values is 100.

My question is how to create Pie chart in Kibana from this jsonarray?

Thanks in advance  
Yakir

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [November 13, 2017, 3:13pm UTC](https://discuss.elastic.co/t/pie-chart-from-array/107266/2 "2017-11-13T15:13:59Z")

</div>

Hey @wkpv68 do you already have this data in Elasticsearch? Kibana pulls all of it's data from Elasticsearch, so you'll need to index your data into Elasticsearch before creating charts in Kibana that utilize it.

---

<div class="post-metadata">

### Author: ![wkpv68](https://avatars.discourse-cdn.com/v4/letter/w/73ab20/32.png) [@wkpv68](https://discuss.elastic.co/u/wkpv68)
#### Post date: [November 13, 2017, 4:37pm UTC](https://discuss.elastic.co/t/pie-chart-from-array/107266/3 "2017-11-13T16:37:38Z")

</div>

Hey,

There was a problem with the data, therefore I didn't saw the charts.  
After fixing the data the chart create

Thanks

---

<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: [December 11, 2017, 4:37pm UTC](https://discuss.elastic.co/t/pie-chart-from-array/107266/4 "2017-12-11T16:37:38Z")

</div>

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