Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Map of India with D3 - chloropleth map

Public visualization

Viewing a saved revision (read-only)

bcc2a03b639a450ea4fd51eb09f49964

Fork of Map of India with D3 - chloropleth map

2 stars10🌍 Public
NNita
Last edited Feb 23, 2021
Created on Feb 20, 2021

This example shows a choropleth map of India’s states, with each state filled by a categorical color scale and labeled by name at its centroid. The visualization uses D3 v5’s `geoMercator` projection, `geoPath`, and `scaleOrdinal` to render the SVG paths. TopoJSON data from a remote GitHub source is parsed with `feature` to draw state boundaries, while state names are positioned using `pathGenerator.centroid`. The map omits the first feature from the dataset, likely removing a national outline or disputed region.

AI-generated description

The map of India - my country