Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sharanya Sriram

Public visualization

Viewing a saved revision (read-only)

4e25678b4bff4e4f879e82f85afbd9d3

Sharanya Sriram

0 stars0🌍 Public
SSharanyaSriram
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from India Map: ICE-8

This example visualizes the states of India, coloring each one with a categorical color scale and labeling it with its name. It loads TopoJSON data from a remote source, converts it to GeoJSON using `topojson.feature`, and renders the state boundaries as SVG paths via `d3.geoPath` with a `geoMercator` projection. The color assignment uses `d3.scaleOrdinal` and `schemeCategory10`, while state names are placed at path centroids. A black stroke outlines each state, with text labels sized at 8 pixels.

AI-generated description

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

See also React Starter.