d3-shape
d3-shape copied to clipboard
d3.dodge?
It’d be great to have a reusable layout primitive for beeswarm plots, as here:
https://observablehq.com/@mbostock/pachinko-simulator
Ideally, it’d support circles of variable radius. And I think the implementation could be accelerated further by using binned columns, each column sorted by y, but possibly the approach above is fast enough to start.
The Plot.dodge transform works nicely. https://observablehq.com/@observablehq/plot-dodge