Skip to main content
100%

INDIA MAP

✓ Published0🌍 Public
0057SatvikDamera
Last edited Mar 29, 2023
Created on Mar 29, 2023
Forked from ICE-8 INDIA

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
MIT Licensed

Similar vizzes