Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of country map

Public visualization

Viewing a saved revision (read-only)

c7990063f9054bb2944be60c15ede85a

Fork of country map

0 stars0🌍 Public
Ssaidhiraj16
Last edited Apr 3, 2022
Created on Apr 3, 2022
Forked from country map

This example displays a choropleth map of India, with each state colored according to a categorical color scheme. The visualization uses the Mercator projection via `d3.geoMercator` and renders geographic boundaries with `d3.geoPath`. GeoJSON data is fetched from a GitHub Gist, parsed with `topojson`'s `feature` function, and drawn as SVG paths. The map is built with D3 v5, React, and a CSS hover effect that changes state fill colors.

AI-generated description

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

See also React Starter.