Activity 8 Country
✓ Published0🌍 Public
This example renders a map of India using geographic data from the world-atlas TopoJSON dataset. It loads D3 v5 and topojson-client via CDN, extracts the India geometry with `topojson.feature`, and projects it using `d3.geoMercator` with `fitSize`. A single SVG path is generated via `d3.geoPath` and appended to the page, displaying the country’s outline. The visualization demonstrates basic map projection and path rendering without additional interactivity or 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