Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

USA Map By Sushil

Public visualization

USA Map By Sushil

0 stars0๐ŸŒ Public
Sskambhore04
Last edited Apr 4, 2022
Created on Apr 4, 2022

This example displays a choropleth-style map of the United States using SVG. It shows state boundaries rendered as red strokes on a blank canvas, with states that change to blue on hover. The visualization loads TopoJSON data from `https://d3js.org/us-10m.v1.json` and converts it to GeoJSON features using `topojson.feature`. It draws the map with `d3.geoPath` and applies a mesh via `topojson.mesh` to outline borders. The styling uses CSS for hover effects and stroke widths.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed