INDIA MAP
✓ Published0🌍 Public
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 descriptionMIT Licensed