Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

A note regarding the dimension creation of markerChart #36

Open
akuji1993 opened this issue Jul 6, 2017 · 0 comments
Open

A note regarding the dimension creation of markerChart #36

akuji1993 opened this issue Jul 6, 2017 · 0 comments

Comments

@akuji1993
Copy link

akuji1993 commented Jul 6, 2017

I have now spent 4 or 5 days, figuring out (two times) how you have to create the geo dimension to make it work with markerChart. I thought that the geo attribute of my data object has to look like this:

{ geo: {lat: 23.2323, lng:34.2323}}

The solution is that the object you give the dimension a geo object on your data object that is formatted like this:

geo: "343.34343, 34.23232"

BUT! This alone still does not make the graph show the map markers. You ALSO need to have a lat and a lng attribute on your data object. So completely your data object has to look like this:

[... , {geo: "34.34343, 23.2323", lat: 34.34343, lng: 23.2323, value: 5000}, ... ]

THEN the markers show up on the map, in this case showing the grouped data for the attribute value. Note, that lat and lng have to be Numbers and geo has to be a String!

I believe this should be noted in the documentation somewhere, because it just drove me nuts for the second time now, because of course I forgot how to fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant