Activity 8 Country
✓ Published0🌍 Public
This example displays a single-country map of India projected with the Mercator projection. It fetches world country boundaries from the world-atlas TopoJSON data, extracts the India feature, and renders it as an SVG path using D3's geoProjection and geoPath APIs. The visualization demonstrates loading D3 v5 and topojson-client from CDNs, and fitting the map 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