Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of map with legend

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportHTML, source ZIP

Fork of Fork of map with legend

0 stars0Public
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

Comments

Sign in to join the discussion.

MIT Licensed