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 'toString' of undefined #77

Closed
kelein opened this issue Jun 16, 2017 · 2 comments
Closed

Cannot read property 'toString' of undefined #77

kelein opened this issue Jun 16, 2017 · 2 comments

Comments

@kelein
Copy link

kelein commented Jun 16, 2017

There was a JS Error occurs to me when I config a worldmap-panel with a elasticsearch data source, as following:

Message:
Cannot read property 'toString' of undefined

Stack trace:
TypeError: Cannot read property 'toString' of undefined
    at a.isMsResolutionNeeded (http://127.0.0.1:3000/public/app/boot.8f0650f6.js:29:11366)
    at new a (http://127.0.0.1:3000/public/app/boot.8f0650f6.js:29:8368)
    at WorldmapCtrl.seriesHandler (http://127.0.0.1:3000/public/plugins/grafana-worldmap-panel/worldmap_ctrl.js?bust=1497584229047:227:26)
    at Array.map (native)
    at WorldmapCtrl.onDataReceived (http://127.0.0.1:3000/public/plugins/grafana-worldmap-panel/worldmap_ctrl.js?bust=1497584229047:210:38)
    at f.emit (http://127.0.0.1:3000/public/app/boot.8f0650f6.js:60:26533)
    at a.emit (http://127.0.0.1:3000/public/app/boot.8f0650f6.js:60:28851)
    at WorldmapCtrl.b.handleQueryResult (http://127.0.0.1:3000/public/app/boot.8f0650f6.js:54:28561)
    at i (http://127.0.0.1:3000/public/app/boot.8f0650f6.js:51:232)
    at http://127.0.0.1:3000/public/app/boot.8f0650f6.js:51:654

And my metric config is:

image

But It works well with kibana when I configured it as follows:

image

@containerpope
Copy link

You have to switch to Worldmap tab and there you have to select geohash (Map Data Options) and the name of your coordinate field.
image
The location name field is optional.

@kelein
Copy link
Author

kelein commented Jun 22, 2017

@mkjoerg Thanks a lot, it works well for me now. 👍

matschaffer added a commit to matschaffer/worldmap-panel that referenced this issue Dec 27, 2020
This allows us to inspect the `__field_` info and display it if we have data
beyond what's used in creating the circle size/color.

This is elasticsearch-centric for the moment. We can add support for
other data sources once we have them available.
matschaffer added a commit to matschaffer/worldmap-panel that referenced this issue Jan 28, 2021
nibinqtl pushed a commit to mileweb/worldmap-panel that referenced this issue Aug 22, 2021
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