Skip to main content
100%

Fork of Fork of ICE8 USA Map

✓ Published0🌍 Public
SSweetierams
Last edited Jul 10, 2022
Created on Jul 10, 2022

This example renders a map of the United States using D3’s `geoAlbers` projection and `geoPath` to draw both national land boundaries and state interiors. TopoJSON data from `us-atlas@3` is loaded with `d3.json` and converted via `feature` and `mesh` from the topojson library. The SVG output, styled with CSS, fills land in red, state borders in green, and includes a blue circle mark. React manages the component state and data loading through the `useState` and `useEffect` hooks.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes