🌍 Public
Viewing a saved revision (read-only)
02527a4881084a3ca3347b9b0be2add3
Fork of Country map
This choropleth map of India displays each state as a distinct colored polygon, with state names rendered at their centroid positions. Built with D3 v5, it uses `d3.geoPath` with a Mercator projection to generate the SVG paths from a TopoJSON file containing India’s administrative boundaries. A categorical color scale colors the states, while topojson’s `feature` extracts the geometry. Text labels are placed via the path generator’s centroid method, and state borders are styled through the CSS class `states`.
AI-generated descriptionThe map of India - my country