Activity 8 Country
✓ Published0🌍 Public
This example renders a simple choropleth-free map of India using D3.js version 5 and the TopoJSON client library. It loads world country boundaries from the world-atlas package, filters the geometry for India, and applies a Mercator projection fitted to a 960 by 500 pixel canvas. The resulting SVG path is drawn with `d3.geoPath`, demonstrating the direct use of geographic projections and TopoJSON feature extraction without additional styling or data overlays.
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