Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

India ICE - 8 - Map

Public visualization

Viewing a saved revision (read-only)

30d87e512f5445aaab1fafad31b591ac

India ICE - 8 - Map

1 star0🌍 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.