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.
Built with blockbuilder.org
https://d3js.org/d3.v4.min.js