ICE-8
✓ Published0🌍 Public
HHarishma Nallala
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from ICE 8 Making Maps (World Map) Maanas Katta
This visualization renders a choropleth map of India using a spherical Mercator projection, with each state filled by a categorical color scale and labeled with its name. The map is drawn as SVG paths generated via `d3.geoPath` and `geoMercator`, using TopoJSON data from the `IND_adm1` collection. State boundaries are emphasized with thick black strokes, and each state’s centroid, calculated with `pathGenerator.centroid`, positions its text label. The code loads data via D3’s `json` promise and applies `scaleOrdinal` with `schemeCategory10` for coloring.
AI-generated descriptionMIT Licensed