>Like all good developers, rather than attempt to build it myself, I had a good look around to see if anyone else had attempted the same thing, and it turns out, someone had. Unfortunately, the example I found isn’t open source, so we had to build it ourselves.
I came across an open source (MIT licensed) project to draw these kind of charts a few years ago: https://github.com/bhagany/nchart
(The algorithms used by nchart and d3-layout-narrative are not the same)