🌍 Public
Viewing a saved revision (read-only)
92341866f0c94885bf56e1f92ee415d7
INDIA MAP
This example visualizes a map of India, displaying each state as a colored SVG path with its name labeled at the centroid. Using d3.geoMercator for projection and d3.geoPath to generate paths, it loads state boundaries from a TopoJSON file via d3.json. The code applies a d3.scaleOrdinal color scheme to fill each state and appends text elements using pathGenerator.centroid for positioning, while CSS adds black strokes between states.
AI-generated description