This is the simplest network force diagram I could create. Let me know if you think I can make it tighter.
Build notes:
d3.stratify()
to reform links into a hierarchy. (NOTE: I ran into a challenge with d.size
when moving from json to csv. While size
is a feature of my data, I had to now access it from d.data.size
.)Not really thes simplest:
d3.stratify
and translate it back to links--but that's for the benefit of the d3-unconf class I'm teaching.tick
functionality because it makes me happy to watch it warble into place.from https://bl.ocks.org/denjn5/6914f73f8bc3f009a875fa2bd11f81d8
https://d3js.org/d3.v4.min.js