Skip to main content
100%

Country Map

✓ Published0🌍 Public
Rreddyakshitha
Last edited Apr 4, 2022
Created on Apr 2, 2022
Forked from World Map

This example displays a black silhouette of India on a blank SVG canvas, derived from world map data. It uses D3 v5 methods `d3.json`, `d3.geoPath`, and `d3.geoNaturalEarth1` to load and project the geographic coordinates. The code fetches the world-atlas TopoJSON file, converts it to GeoJSON with `topojson.feature`, filters for the country named "India," and renders the resulting path. The projection is translated and scaled to focus on the country’s extent.

AI-generated description

country map

MIT Licensed

Similar vizzes