Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Country map

Public visualization

Viewing a saved revision (read-only)

13cd3bba682c44c791541f7e13676450

Fork of Country map

0 stars0🌍 Public
Bbhargavarathod
Last edited Mar 31, 2022
Created on Mar 31, 2022
Forked from 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 description

The map of India - my country