Fork of ICE8-1.2
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed