Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-8

Public visualization

ICE-8

0 stars0🌍 Public
HHarishma Nallala
Last edited Jul 10, 2022
Created on Jul 10, 2022

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 description

Comments

Sign in to join the discussion.

MIT Licensed