Skip to main content
Public

Share visualization

Loading preview…

Fork of ICE8-1.2

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of ICE8-1.2

0
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