d3 / d3-shape

Graphical primitives for visualization, such as lines and areas.
https://d3js.org/d3-shape
ISC License
2.47k stars 305 forks source link

d3.dodge? #147

Open mbostock opened 5 years ago

mbostock commented 5 years ago

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.

mbostock commented 1 year ago

The Plot.dodge transform works nicely. https://observablehq.com/@observablehq/plot-dodge