Activity 8_Task5_2
✓ Published0🌍 Public
This example displays a choropleth-style map of India rendered as an SVG path using D3 v5. It loads world-atlas TopoJSON data, extracts the India geometry, and applies a Mercator projection with `d3.geoMercator` and `d3.geoPath`. The map is fitted to a 960x500 viewport using `fitSize`, and the resulting path is drawn onto an SVG element. The code demonstrates TopoJSON client usage and geographic path generation.
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