Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of map with legend

Public visualization

Viewing a saved revision (read-only)

3f2f2c8154664e0db316349db86be0ad

Fork of Fork of map with legend

0 stars0🌍 Public
Bbhargavarathod
Last edited Mar 31, 2022
Created on Mar 31, 2022

This example displays a choropleth map of Indian states, colored with a rainbow sequential scale based on each state’s `AREA_` property. Built with React and D3 v6, it uses `json` to load TopoJSON data, `feature` to convert it to GeoJSON, and `geoMercator` with `fitSize` for projection. `geoPath` renders the SVG paths, while `scaleSequential` and `interpolateRainbow` map area values to fills. The code includes a legend reference, but no legend is actually rendered.

AI-generated description

Making map in react d3 method 1