News for hackers. Stuff that matters.
Re:DAGitty – draw and analyze causal diagrams by anileated on Thursday September 05, 2024 @03:48AM (#41454506)
https://github.com/vizdom-dev/vizdom/ seems like a nice library for rendering directed graphs into SVG, and apparently has automatic layout capabilities.
Re:DAGitty – draw and analyze causal diagrams by mkesper on Thursday September 05, 2024 @06:52AM (#41455392)
Please note that while Vizdom is freely available for use under the Apache License 2.0, the Rust WebAssembly binary included in this library is closed-source. You are free to use the library, but the source code for the Rust WebAssembly binary is not publicly available.
Re:DAGitty – draw and analyze causal diagrams by s0l0ist on Wednesday September 11, 2024 @12:33AM (#41508047)
Hey that's me! Thanks for mentioning it.

So far it has automatic layout that will position (and create a rendering) for hierarchical graphs - even if your data isn't hierarchical in nature. This is how the algorithm works internally as it is a reflection of Dagrejs.

I plan to support more layout types in the future.

As for placement of 'root' nodes (aka source and sink nodes) - in reference to the parent comment - my hope is to expose graph theory methods that you can run before layout/render which would help facilitate this automatically, but it's non-trivial to codify as it requires a substantial refactor to the layout algorithm(s).