Hex map of UK constituencies
✓ Published0🌍 Public
This example shows UK parliamentary constituencies as a hexagonal grid map, using color to encode different data attributes such as region, population, or election results. Users can click on a hexagon to highlight or dim other regions, and a legend allows filtering by color value. Built with D3, it uses `geoNaturalEarth1` and `geoPath` for the map projection and shape rendering, while `scaleOrdinal` with `schemeSpectral` assigns colors. The visualization supports zooming via d3.zoom and renders as an SVG, with data loaded from a provided HexJSON file.
AI-generated descriptionMIT Licensed