🌍 Public
Viewing a saved revision (read-only)
e5c340ddd2454ce8ad87b2f380db48b8
Fork of map with legend
This example displays a choropleth map of Indian states, colored by the `AREA_` property from NFHS-4 data. It loads TopoJSON state geometries from a GitHub gist and renders them as SVG paths using React and D3 v6. The map uses `geoMercator` with `fitSize` for projection, and a sequential color scale with an `interpolateRainbow` interpolator to encode area values. A legend is prepared via `d3-legend` but remains commented out.
AI-generated descriptionMaking map in react d3 method 1