Skip to main content
100%

Fork of Country map fork

✓ Published0🌍 Public
Nnagarjuna1968
Last edited Apr 3, 2022
Created on Apr 3, 2022
Forked from Country map fork

This example displays a choropleth-style map of India, with each state filled using a categorical color scale. The visualization renders geographic boundaries as SVG paths using `d3.geoPath` with a Mercator projection, loading TopoJSON data from a GitHub gist. Hovering over a state turns it yellow via CSS. The code uses `d3.json` for data fetching, `topojson.feature` for parsing, and `d3.scaleOrdinal` with `schemeCategory10` for colors, though the fill assignment references an undefined `interpolateRainbow` property rather than actual data values.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes