datalib icon indicating copy to clipboard operation
datalib copied to clipboard

Map to data set with Country coloumn

Open Ganni93 opened this issue 6 years ago • 1 comments

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

Ganni93 avatar Dec 03 '19 17:12 Ganni93

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.

cjbraun avatar Jan 25 '21 19:01 cjbraun