Directed, acyclic graph in d3.js
问题 Is there a reliable way of drawing directed, acyclic graphs in D3.js today? I'm trying to visualize prerequisites in a curriculum, similar to this. I've seen some older answers to similar questions with the most promising lead being this hack, though it doesn't work reliably well with larger and more complex data sets. Is this simply a rare case of a visualization that D3 is not ideal for? 回答1: You may have a try to dagre, a JS library for DAG graphs. If you want to use d3 for whatever reason