Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE8-1.2

Public visualization

Fork of ICE8-1.2

1 star0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed