vega / datalib

JavaScript data utility library.
http://vega.github.io/datalib/
BSD 3-Clause "New" or "Revised" License
731 stars 133 forks source link

Map to data set with Country coloumn #104

Open Ganni93 opened 4 years ago

Ganni93 commented 4 years ago

Hi, I have i data set which includes a coloumn called Country and naturally consists of a list of countries. I would like to join (assuming via 'lookup' and 'key' properties in vega lite with this data set so that I can plot my data onto the world-110m according to the country.

I could see from other examples (different maps) that this can be done via 'Id' or'Name_1' field however I cannot seem to get it anything to work for world-110m.

Could you kindly confirm what field I should use to join this 'world-110m' with the 'Country' field in my data set? Thanks

cjbraun commented 3 years ago

The id field represents the ISO 3116-1 numeric country codes. If you just have the name of countries you will have to figure out how to map those to the country codes.