Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of React Starter

Public visualization

Viewing a saved revision (read-only)

2293c7ca20774e62a8f2b39a5790d3bf

Fork of Fork of React Starter

0 stars0🌍 Public
NNita
Last edited Feb 27, 2025
Created on Feb 27, 2025

This interactive map displays the states of India using GeoJSON data from the India State Map Data GitHub repository. Users hover over regions to reveal state names via a tooltip and click to toggle a persistent selection state, visualized by distinct fill colors. The visualization is built with React and D3.js, leveraging `d3.geoMercator` for projection, `d3.geoPath` for geographic paths, and state-based styling to update SVG attributes dynamically. The map loads the geographic data asynchronously and handles loading and error states.

AI-generated description

React Starter code.