Enclosing Force Circles
The visualization displays pay ratios at London universities, where each circle’s size and color encode the ratio between highest and lowest salaries. Dots inside each circle represent the ratio value, with hover interactions revealing the exact ratio and adjusting opacity. Built with D3 v4, the code uses `d3.forceSimulation` for positioning dots and `d3.packEnclose` to compute enclosing circles. Data from `paygaps.js` lists institutional salary figures, rendered as SVG with interactive hover states.
AI-generated descriptionUsing d3.packEnclose to draw larger circles around circles forced towards a single point.
Visualising London university pay ratios. The number of dots in each enclosed circle indicates the ratio between the lowest and highest paid at each university. Hovering over each circle reveals the ratio.
forked from <a href='http://bl.ocks.org/tlfrd/'>tlfrd</a>'s block: <a href='http://bl.ocks.org/tlfrd/e64f7c1ae37b6f87a981f48b8aa0ff3b'>Enclosing Force Circles</a>