Skip to main content
100%

Fork of ICE8-1.2

✓ Published0🌍 Public
Cchandanagandla
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from ICE8-1.2

This example displays a choropleth map of the United States, where each state is filled with a categorical color from `d3.scaleOrdinal` and `schemeCategory10`. It renders state boundaries using TopoJSON data from the us-atlas repository, projected with `geoAlbersUsa`, and draws paths via `d3.geoPath`. State names are positioned at each polygon’s centroid, calculated by `pathGenerator.centroid`, and appear as SVG text elements. The visualization uses D3 v5 and React, with tooltips added via appended `title` elements.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes