I am trying to create a chloropleth map of a country on selection of the country from a drop down,but for this i need topojson file of the world map countries. Where do i find this ? /Additionally the files which i have tried when i try to iterate the objects in the file through topojson functions it doesnt draw the map and its unable to map the coordinates./

I have tried a couple of repositories on git which happen to have a collection of the world countries json but they don't seem too work.The object when fed to topojson function doesnt let d3 draw paths.

1 Answers

0
lando On

topojson/world-atlas should have what you need. You can also access this via unpkg at https://unpkg.com/[email protected]/world/110m.json. For an example on how to use this data, check out https://observablehq.com/@d3/world-tour.