# Pie plugin gives cannot read property error when used in elasticsearch

**URL:** <https://community.grafana.com/t/pie-plugin-gives-cannot-read-property-error-when-used-in-elasticsearch/9834>\
**Category:** Elasticsearch\
**Created:** [August 21, 2018, 2:51pm UTC](https://community.grafana.com/t/pie-plugin-gives-cannot-read-property-error-when-used-in-elasticsearch/9834 "2018-08-21T14:51:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roysoham85](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/roysoham85/32/4572_2.png) [@roysoham85](https://community.grafana.com/u/roysoham85)\
**Post date:** [August 21, 2018, 2:51pm UTC](https://community.grafana.com/t/pie-plugin-gives-cannot-read-property-error-when-used-in-elasticsearch/9834/1 "2018-08-21T14:51:17Z")

</div>

Cannot read property ‘length’ of undefined.  
Can someone please assist?

---

<div class="post-metadata">

**Author:** ![skmdjasim](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@skmdjasim](https://community.grafana.com/u/skmdjasim)\
**Post date:** [July 2, 2019, 11:56am UTC](https://community.grafana.com/t/pie-plugin-gives-cannot-read-property-error-when-used-in-elasticsearch/9834/2 "2019-07-02T11:56:36Z")

</div>

Hi,

I have also facing same issue that “Cannot read property ‘length’ of undefined” with Elastic search data source. pie chart plugin version is 1.3.6 from Grafana Labs. Can some please help?
