Pretty cool that they have multiple layout engines:
Layout engines
dagre (default): A fast, directed graph layout engine that produces layered/hierarchical layouts. Based on Graphviz's DOT algorithm.
ELK: Also a directed graph layout engine. More mature than dagre, better maintained (part-time academic research team working on it), with recent releases.
TALA: New layout engine designed specifically for software architecture diagrams.
Layout engines
dagre (default): A fast, directed graph layout engine that produces layered/hierarchical layouts. Based on Graphviz's DOT algorithm.
ELK: Also a directed graph layout engine. More mature than dagre, better maintained (part-time academic research team working on it), with recent releases.
TALA: New layout engine designed specifically for software architecture diagrams.
https://d2lang.com/tour/layouts/