Activity 8 Country
✓ Published0🌍 Public
This visualization shows a map of India rendered as an SVG path, with the country outlined and filled using geographic projection. The example loads world country boundaries from the world-atlas TopoJSON dataset, extracts the India geometry, and applies a Mercator projection fitted to the map’s dimensions. Using d3.geoPath with the projection, it draws the country shape onto a 960-by-500-pixel SVG canvas. The code leverages d3.json for data loading and topojson-client to convert TopoJSON into GeoJSON, demonstrating a minimal setup for choropleth or boundary-focused mapping.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed