Skip to main content
100%

India ICE - 8 - Map

✓ Published0🌍 Public
PPrasanth
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from ICE - 8 - Map

This example renders a choropleth map of India’s administrative regions, with each state filled by a categorical color and labeled with its name. The visualization uses D3 v5’s `geoMercator` projection and `geoPath` generator to draw the SVG paths from TopoJSON data. State boundaries are stroked in white, and each polygon includes a tooltip via `title` elements. Colors come from `scaleOrdinal` with `schemeCategory10`, while labels are positioned using `pathGenerator.centroid`. The code loads the India dataset from a GitHub gist and shifts off a duplicate feature before rendering.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes