Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of India map by Praneeth

Public visualization

Fork of India map by Praneeth

0 stars1🌍 Public
PPran6728
Last edited Mar 28, 2023
Created on Mar 28, 2023

This choropleth map of India visualizes the country’s first-level administrative divisions, with each state or union territory filled by a categorical color and labeled with its name. The visualization uses D3 v5 to load geographic data from an external JSON file, projecting the geometries with `geoMercator` and rendering them as SVG paths via `geoPath`. State names are placed at path centroids using the projection’s centroid calculation. The map relies on the `topojson` library to convert the GeoJSON features into renderable shapes, with a hover effect that highlights individual states in white.

AI-generated description

Map Of India

Comments

Sign in to join the discussion.

MIT Licensed