Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Country Map

Public visualization

Viewing a saved revision (read-only)

d689ff8306244ba398aea2bbde4dc16b

Country Map

0 stars0🌍 Public
Ssudeepmamidi
Last edited Apr 10, 2023
Created on Apr 10, 2023

This example visualizes a map of the United States, rendering individual state boundaries as green paths with dark strokes on a light blue SVG canvas. It uses the D3 v4 library with `d3.geoPath` and the `d3.geoAlbersUsa` projection to draw the map, while `topojson-client` converts TopoJSON data from the us-atlas dataset into GeoJSON features. The SVG is styled with a custom background color and positioned within a React-free HTML page, with margins and transform attributes controlling the layout.

AI-generated description

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

See also React Starter.