d3 tree dag

JavaScript
npm i d3-dag@latest
Source

Also in JavaScript: