π Public
Viewing a saved revision (read-only)
7ea48a1e3d8a4c4495a9e8840f770d2d
Hex map of UK constituencies
A pointy-topped hex map displays the 2017 UK parliamentary constituencies, each rendered with equal visual weight. A dropdown selector allows coloring the hexes by various data, including region, population, election results, and EU referendum estimates. The visualization uses D3 v6, with a custom `Constituencies` class loading HexJSON data. The interface includes interactive elements: a color legend and buttons to save the map as HexJSON or SVG, with WebGL rendering support.
AI-generated descriptionA demonstration of how to start using D3 version 6.