Massachusetts Chrolopleth map with interactive legend and viewbox
This choropleth map displays Massachusetts town boundaries colored by county, with an interactive legend that highlights matching regions on hover. The visualization uses React with D3 v5 APIs including `geoAlbers`, `geoPath`, and `scaleOrdinal` to project and render the TopoJSON geometries. A viewBox crops the map to the state, while legend hover states adjust fill opacity for focused counties. Town-to-county mappings come from a CSV gist, and geographic data originates from MassGIS shapefiles converted through ogr2ogr and mapshaper.
AI-generated descriptionThis Map show county boundry of Massachusetts
Geo Shape file are from here
The download Shape file did not contain coordination. Therefore, it is first converted to geojson by ogr2ogr
Geojson then reprocessed by mapshaper to Topojson.
Topojson file is loaded to Github gist
City to County map csv is loaded to gist
legend is added and make it interactive with mouse movement