Activity 8 Country
✓ Published0🌍 Public
This example displays a map of India, rendered as a single SVG path using a Mercator projection fitted to the country’s boundaries. The code loads the World Atlas TopoJSON dataset, extracts the India geometry, and draws it with D3’s `d3.geoMercator` and `d3.geoPath` functions. It reads geographic data from a remote JSON file and projects it to a 960 by 500 pixel canvas.
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