Skip to main content
100%

Map of India with D3 - chloropleth map

✓ Published1🌍 Public
RRavi Teja Bonam
Last edited Apr 5, 2022
Created on Apr 4, 2022
Forked from World Map

This choropleth map of India colors each state using D3’s `scaleOrdinal` and `schemeCategory10`, with state names placed at the centroid of each polygon via `geoPath.centroid`. It uses the `geoMercator` projection, `topojson.feature` to parse India’s states from a TopoJSON file, and renders SVG paths with black strokes between states. The map loads data from a remote TopoJSON source and appends interactive tooltips using SVG `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes