Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Massachusetts Chrolopleth map with interactive legend

Public visualization

Viewing a saved revision (read-only)

edab4774fa7d410cb227b82d85b9dc9d

Massachusetts Chrolopleth map with interactive legend

0 stars1🌍 Public
Wwenleicao
Last edited Oct 22, 2019
Created on Oct 22, 2019

This choropleth map shows Massachusetts town boundaries colored by county, with an interactive legend that highlights matching regions on hover. The visualization uses React with d3.v5, including `d3.geoAlbers` for projection and `d3.geoPath` for rendering SVG paths from TopoJSON data. A CSV file maps towns to counties, and the legend employs `d3.scaleOrdinal` with a custom `ColorLegend` component. Hovering a legend value dims non-matching towns via reduced opacity while brightening the selected county.

AI-generated description

This Map show county boundry of Massachusetts