Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

India Map

Public visualization

Viewing a saved revision (read-only)

e14e04ab2caa4869be3c0e94e70a80f3

India Map

2 stars2🌍 Public
MMalempatiSaranya
Last edited Jul 22, 2022
Created on Jul 8, 2022

This interactive visualization displays the states and districts of India on a zoomable SVG map. The code uses `d3.geoMercator` for projection and `d3.geoPath` to render geographic features, with district polygons filled via `scaleOrdinal` and `schemeCategory10`. It loads GeoJSON data from topojson files and applies a zoom behavior to pan and scale the map. Hovering over a district changes its fill color, while tooltips show the district and state names.

AI-generated description

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

See also React Starter.