Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of US states map : with colorScale. One color for each country

Public visualization

Fork of US states map : with colorScale. One color for each country

0 stars0🌍 Public
Nnagamaheswar
Last edited Apr 1, 2022
Created on Apr 1, 2022

This visualization displays a choropleth map of US states, where each state is filled with a distinct color from a categorical palette. The map uses the d3.geoAlbersUsa projection to render the geographic boundaries as SVG paths. Data is loaded from the us-atlas counties-10m.json file, with state names mapped to colors via d3.scaleOrdinal. States turn blue on hover, using CSS styling within the d3.select, d3.geoPath, and d3.json workflow.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed