DV ICE-8 Country Map
✓ Published0🌍 Public
This example renders a choropleth-style map of India’s states, colored via `d3.scaleOrdinal` with `schemeCategory10`. It uses `d3.json` to load a TopoJSON file, `topojson.feature` to extract state polygons, and `d3.geoPath` with a `geoMercator` projection to draw each state as an SVG path. State names are placed at path centroids. Hovering highlights a state in green via CSS, while the background uses a linear gradient. Data comes from a GitHub-hosted TopoJSON dataset.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed