Activity 8 Question 5 Part 2
✓ Published1🌍 Public
This example visualizes India as a single highlighted geographic region, rendered on an SVG canvas using a Mercator projection fitted to the country’s boundaries. The code loads world country data from the world-atlas TopoJSON dataset via `d3.json`, extracts India’s geometry using `topojson.feature`, and draws it with `d3.geoPath` and `d3.geoMercator`. D3 v5 and the TopoJSON client library are loaded from CDNs, and the map is statically displayed without interaction or additional styling.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed