Skip to main content
100%

India Map

✓ Published0🌍 Public
NNithish Kumar
Last edited Mar 30, 2023
Created on Mar 30, 2023

This example displays a choropleth map of India’s states, with each state filled by a distinct color from d3’s `scaleOrdinal` and `schemeCategory10`. Using topojson data loaded from a remote GitHub repository, the code projects the geometry with `d3.geoMercator` and renders it as SVG paths via `d3.geoPath`. State names are positioned at each polygon’s centroid, while hover effects and a light pink stroke are defined in the accompanying CSS. The visualization relies on the D3 v5 library and topojson for geographic feature extraction.

AI-generated description

Map Of India

MIT Licensed

Similar vizzes