Skip to main content
100%

Fork of Fork of React Starter

✓ Published0🌍 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

Interactive Map of India

This project creates an interactive map of India using:

Features

  • Displays all states of India
  • Hover over states to see state names
  • Click on states to select/deselect them
  • Responsive design

Getting Started

  1. Install dependencies:
MIT Licensed

Similar vizzes