Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Map of India

Public visualization

Viewing a saved revision (read-only)

0c7c8a2099c34f8f82245bf870c8c22b

Fork of Map of India

0 stars0🌍 Public
NNita
Last edited Feb 24, 2021
Created on Feb 23, 2021
Forked from Map of India

This example shows a choropleth-style map of Indian states, colored by a categorical scale and labeled with state names. It loads population data from a CSV and geographic boundaries from a TopoJSON file, then joins them by state ID using `Promise.all`. The visualization uses `d3.geoMercator` for projection, `d3.geoPath` to render SVG paths, and `d3.scaleOrdinal` with `schemeCategory10` for coloring. Hover effects are applied to state paths via the `.states` CSS class, while tooltips display state names using SVG `<text>` elements.

AI-generated description

The map of India - my country