Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

USA Map

Public visualization

USA Map

0 stars0🌍 Public
Ppardha1411
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example displays a choropleth map of the United States, coloring each state according to a value from a local CSV file. The code loads GeoJSON geographic data and uses `d3.geoPath` for map rendering, while a linear color scale maps data values to a light-to-dark blue gradient. The map uses SVG paths with white strokes, and states without corresponding data appear gray. It demonstrates loading external data via `d3.csv` and `d3.json`.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed