π Public
Fork of Fork of React Starter
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 descriptionInteractive Map of India
This project creates an interactive map of India using:
- React for the UI
- D3.js for map visualization
- India State Map Data for GeoJSON data
Features
- Displays all states of India
- Hover over states to see state names
- Click on states to select/deselect them
- Responsive design
Getting Started
- Install dependencies:
MIT Licensed
Comments
Sign in to join the discussion.