Skip to main content
100%

Massachusetts Chrolopleth map with interactive legend

✓ Published1🌍 Public
Wwenleicao
Last edited Oct 22, 2019
Created on Oct 18, 2019

A choropleth map of Massachusetts displays town boundaries colored by county, with an interactive legend that highlights towns in the selected county on mouse hover. Built with React and D3 v5, it uses `d3.geoAlbers` projection with custom rotation and scale via `d3.geoPath` for rendering SVG paths. The legend, implemented with HTML circles and text, updates a hovered value state to filter which towns receive the highlight. Town-county mappings come from a CSV, with geoJSON spatial data from a gist.

AI-generated description

This Map show county boundry of Massachusetts

MIT Licensed

Similar vizzes