Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

India Map

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed