All examples By author By category About

Kcnarf

ForceLayout - maintain x-position of nodes

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.

Acknowledgments to: