Fork of map with legend
✓ Published0🌍 Public
This example displays a choropleth map of Indian states, using a sequential rainbow color scale to encode the `AREA_` property of each state. The map is rendered as SVG within a React component, with geographic paths generated using `d3.geoPath` and a Mercator projection fitted to the viewport via `d3.geoMercator().fitSize`. State boundaries come from a TopoJSON file loaded with `d3.json`, and the color mapping uses `d3.scaleSequential` with `d3.interpolateRainbow`. The code includes a legend SVG element but does not currently render a legend.
AI-generated descriptionMaking map in react d3 method 1
MIT Licensed