erikbrinkman / d3-dag

Layout algorithms for visualizing directed acyclic graphs
https://erikbrinkman.github.io/d3-dag/
MIT License
1.46k stars 87 forks source link

Support for adding arrows #12

Closed lkaihua closed 6 years ago

lkaihua commented 6 years ago

The links of a DAG have directions. Are there any options in d3-dag to display arrows in link header or body, to show directions?

@erikbrinkman d3-dag is a great project and I would love to contribute this part if not supported yet :)

erikbrinkman commented 6 years ago

Hey @lkaihua,

d3-dag is only meant for the layout portion, that is to say that actually rendering the dag is meant to be done with d3, which does have support for rending arrows. However, this may not be obvious, so I could throw up some examples. Unless I completely misunderstand what you want, I'll keep this issue open to remind me to do that. Hopefully, it won't take me too long, although I can already see some issues with doing it "optimally."

lkaihua commented 6 years ago

@erikbrinkman Thank you so much for the new examples!