Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Country Map

Public visualization

Country Map

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed