Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of IndiaMap

Public visualization

Viewing a saved revision (read-only)

578200c6b4024450bc262e1803dc7bb9

Fork of IndiaMap

0 stars0🌍 Public
KKinjal-Goyani
Last edited Oct 20, 2022
Created on Oct 20, 2022
Forked from IndiaMap

This visualization displays a color-coded map of India’s states, with each state labeled by name and rendered using D3’s `geoMercator` projection and `geoPath` generator. State boundaries are drawn with a white stroke, and hovering over a state fills it white. The code loads TopoJSON data from a GitHub gist, applies a `scaleOrdinal` with `schemeCategory10` for fill colors, and positions state name labels at path centroids. It uses D3 v5, TopoJSON, and renders to SVG within a React project.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.