Skip to main content
100%

Map of India with D3 - chloropleth map-APR 23, 2021

✓ Published2🌍 Public
NNita
Last edited Apr 23, 2021
Created on Apr 23, 2021

A choropleth map renders India’s districts as colored SVG paths, with each region labeled by its state name at the centroid. The visualization uses D3 v5’s `geoMercator` projection and `geoPath` to draw shapes from a TopoJSON dataset of district boundaries. `d3.scaleOrdinal` with `schemeCategory10` assigns fill colors, while district hover states and labels are added via appended `title` elements and `text` nodes. The code relies on the topojson client library to convert TopoJSON features into GeoJSON for rendering.

AI-generated description

The map of India - my country

MIT Licensed

Similar vizzes