All examples By author By category About

cool-Blue

self sorting nodes in d3 fdg IV

Force Directed Graph with self sorting nodes

The nodes arrange themselves by size, with the larger nodes migrating toward the center.

Features

By creating the nodes on two points (randomly biased between the two) not only is the shape controlled but the efficiency of the sorting is markedly improved.  

d3 features used

  1. d3.layout.force
  2. Ordinal Scales
  3. d3.format
  4. d3.range
  5. d3.geom.quadtree