🌍 Public
Viewing a saved revision (read-only)
3e276f120a664a0b852dbaeb3d9e5b8d
ICE8_CountryMap
This example renders a choropleth-style map of the United States using React and SVG. It loads US state topology from a remote TopoJSON file via `d3.json`, then converts it to GeoJSON features and an interior mesh using `topojson.feature` and `topojson.mesh`. The map is drawn with `d3.geoPath` and the custom `geoAlbersUsaTerritories` projection, styling land areas cyan and state boundaries black, with a green hover effect on individual states.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.