# D3 gauge “Cannot read property ‘length’ of undefined”

**URL:** <https://community.grafana.com/t/d3-gauge-cannot-read-property-length-of-undefined/14562>\
**Category:** General\
**Created:** [February 18, 2019, 8:20pm UTC](https://community.grafana.com/t/d3-gauge-cannot-read-property-length-of-undefined/14562 "2019-02-18T20:20:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aamustafa](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aamustafa](https://community.grafana.com/u/aamustafa)\
**Post date:** [February 18, 2019, 8:20pm UTC](https://community.grafana.com/t/d3-gauge-cannot-read-property-length-of-undefined/14562/1 "2019-02-18T20:20:00Z")

</div>

Dears,

I got the following error whenever I try to make D3 Gauge or Pie Chart while query information from MYSQL DB, but from grafana DB it works…

“Cannot read property ‘length’ of undefined”

below is the table content in MYSQL:

±-------±-----------------------+  
| city | count(incident\_number) |  
±-------±-----------------------+  
| Jeddah | 42 |  
±-------±-----------------------+
