🌍 Public
Viewing a saved revision (read-only)
5544b4c4dce444708ae89964e2497325
Activity 8 Country
This example displays a single-country map of India using a Mercator projection. It fetches world geometry from the world-atlas TopoJSON dataset, extracts the India feature, and renders it as an SVG path. The visualization uses D3 v5’s `d3.json` for data loading, `d3.geoMercator` and `d3.geoPath` to project and draw the boundary, and `topojson.feature` to convert the TopoJSON data into GeoJSON. The map is sized to 960 by 500 pixels and fills the viewport based on India’s extent.
AI-generated descriptionA demonstration of how to start using D3 version 6.