This block experiments a way to vizualise the distribution of things (whatever it is) in a horizontal way (ie. along the x-axis), where constraints/objectives are:
This block uses the d3's Force Layout to achieve these objectives. I re-use the technics illustrated in mbostock's block in and later by bjtucker's block, in order to constrain each circle's x-position while allowing vertical accumulation/aggregation of circles.
https://d3js.org/d3.v3.min.js
https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5.1/dat.gui.min.js