Skip to main content
100%

ICE - 8 - Map

✓ Published0🌍 Public
IIndiraSiripurapu
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from HTML Starter

This example visualizes the administrative regions of India as a choropleth map, with each state or territory filled by a distinct color and labeled with its name. It uses D3 v5’s `geoMercator` projection and `geoPath` to render TopoJSON boundaries loaded from a GitHub-hosted India dataset, after removing the first feature. The code applies D3’s `scaleOrdinal` with `schemeCategory10` for coloring, and positions each state label at the computed centroid of its path.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes