Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'length' of undefined for world map plugin #157

Closed
zeshahid opened this issue Aug 23, 2018 · 3 comments
Closed

Cannot read property 'length' of undefined for world map plugin #157

zeshahid opened this issue Aug 23, 2018 · 3 comments

Comments

@zeshahid
Copy link

I'm able to view data from kibana and even on table panel but while using worldmap I'm getting error "Cannot read property 'length' of undefined"

TypeError: Cannot read property 'length' of undefined
at e.isMsResolutionNeeded (http://myip:3000/public/build/app.5372b9bbcb8c6d1c027e.js:1:17572)
at new e (http://myip:3000/public/build/app.5372b9bbcb8c6d1c027e.js:1:14477)
at WorldmapCtrl.seriesHandler (http://myip:3000/public/plugins/grafana-worldmap-panel/worldmap_ctrl.js:260:26)
at Array.map ()
at WorldmapCtrl.onDataReceived (http://myip:3000/public/plugins/grafana-worldmap-panel/worldmap_ctrl.js:232:38)
at o.emit (http://myip:3000/public/build/vendor.0cea50118711e7e6c839.js:44:25321)
at e.emit (http://myip:3000/public/build/app.5372b9bbcb8c6d1c027e.js:1:13178)
at WorldmapCtrl.e.handleQueryResult (http://myip:3000/public/build/0.5c89ac3fc7a3e78b3629.js:7:18161)
at u (http://myip:3000/public/build/vendor.0cea50118711e7e6c839.js:87:69119)
at http://myip:3000/public/build/vendor.0cea50118711e7e6c839.js:87:69565

@ivankosenko
Copy link

I have this problem too

@ivankosenko
Copy link

ivankosenko commented Aug 29, 2018

@xishanshahid, I found solution here: #84 (comment)
In current version of grafana (5.2.3) this settings have a bit changed names:
tab "Worldmap" => section "Map Data Options" => parameter "Location Data": set to "geohash"
section "Field Mapping" => parameter "geo_point/geohash Field": set my fileld name
parameter "Location Name Field" in my case must be empty (when I specified an existing field, the data was not displayed at all)

@flopp999
Copy link

@xishanshahid, I found solution here: #84 (comment)
In current version of grafana (5.2.3) this settings have a bit changed names:
tab "Worldmap" => section "Map Data Options" => parameter "Location Data": set to "geohash"
section "Field Mapping" => parameter "geo_point/geohash Field": set my fileld name
parameter "Location Name Field" in my case must be empty (when I specified an existing field, the data was not displayed at all)

This helped me when I was updating from 0.0.21 to 0.1.2

ravithb added a commit to ravithb/worldmap-panel that referenced this issue Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants