🌍 Public
Viewing a saved revision (read-only)
62ae3544a5934ffdba5186ea24cc2263
Activity 8 Task 5-2 Country
This example displays a map of India rendered as an SVG path, centered within a 960-by-500 viewport. It uses D3 version 5 and TopoJSON to load the world-atlas dataset, extract the country’s geometry by name, and project it with a Mercator projection fitted to the country’s bounds. The `d3.geoPath` generator then draws the boundary, with no additional styling or interactive elements.
AI-generated descriptionA demonstration of how to start using D3 version 6.