Activity 8 Country
✓ Published0🌍 Public
This example displays a map of India rendered as an SVG path, centered using a Mercator projection fitted to the country’s boundaries. It loads world country geometries from the world-atlas TopoJSON dataset, filters for India, and draws the shape with d3.geoPath. The code demonstrates importing D3 v5 via a CDN script tag and using topojson-client to extract features.
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