Skip to main content
100%

Fork of Fork of Map of India with D3 - chloropleth map

✓ Published0🌍 Public
Bbindhureddy98
Last edited Apr 1, 2022
Created on Apr 1, 2022

This choropleth map displays the states of India, each filled with a distinct color from a categorical scale and labeled with its name. The visualization uses D3 v5 and TopoJSON to load and render state boundaries from a GitHub-hosted TopoJSON file. SVG paths are generated with `d3.geoPath` and a Mercator projection, with state labels positioned using `pathGenerator.centroid`. The code assigns fill colors via `scaleOrdinal` and `schemeCategory10`, and applies static styling through CSS classes.

AI-generated description

The map of India - my country

MIT Licensed

Similar vizzes