Activity 8 Task 5.2
✓ Published0🌍 Public
This example displays a choropleth map of India rendered as an SVG using D3 v5 and TopoJSON. It loads world country geometries from the world-atlas dataset, isolates India by finding its feature in the geographic data, and applies a Mercator projection fitted to the country’s bounds. The map is drawn with d3.geoPath, while topojson.feature extracts the relevant geometry for rendering.
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