Pie plugin gives cannot read property error when used in elasticsearch

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


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?