Example of how to
.geoPolygon()
and .polygonPoints()
to filter out point locations beyond the desired geography.More examples... Farmers Markets I: SVG • Farmers Markets II: SVG and interaction • Military disputes: SVG with clipping • Number of cities: Canvas • all examples on Observable
https://unpkg.com/d3-hexgrid
https://unpkg.com/d3
https://unpkg.com/d3-geo-projection
https://unpkg.com/simple-statistics
https://unpkg.com/topojson