Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap tricks for interactive maps - India

Public visualization

Viewing a saved revision (read-only)

a0a07d96b44a4d5c86d54b3ed616a136

Cheap tricks for interactive maps - India

3 stars4🌍 Public
BB Sundaresan
Last edited Jul 23, 2020
Created on Jul 13, 2020

This interactive map of India shows district-level boundaries colored by state, with state outlines overlaid in black. Users can pan and zoom via the d3.zoom API, which applies a transform to the SVG group containing all map elements. The visualization loads TopoJSON data for both states and districts, then renders paths using d3.geoPath with a geoMercator projection. District colors are assigned via a d3.scaleOrdinal, and hover states change the fill through CSS.

AI-generated description

A bare minimum HTML page.

See also React Starter.