Activity 8 Country
✓ Published0🌍 Public
This example displays a static SVG map of India using a Mercator projection, with the country’s boundary rendered as a single path. It loads geographic data from a world-atlas TopoJSON file, extracts the feature for India, and projects it with `d3.geoMercator` and `d3.geoPath`. The visualization is generated client-side using D3 v5 and the `topojson-client` library, with the final SVG output sized to 960 by 500 pixels.
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