Trying to recreate a reusable version of this type, without the D3 chord diagram business
https://www.nytimes.com/interactive/2018/06/20/business/economy/immigration-economic-impact.html
The labels are harder to programatically position, so I've opted for coordinates positioned on the link itself, inset from from end.
The chordNetwork function could be called with any set of nodes and links if you wish.
I've added greadability.js to review the global graph readability metrics, which for this graph is:
Built with blockbuilder.org
forked from tomshanley's block: Recreating the NY Times immigration flows chart
https://d3js.org/d3.v4.min.js